Add a utmp option if built with utempter, GitHub issue 5657 from Damian Nowak.

This commit is contained in:
Nicholas Marriott
2026-10-09 13:18:05 +01:00
parent 10c744038f
commit b7fd92b782
7 changed files with 81 additions and 17 deletions

View File

@@ -363,10 +363,7 @@ server_destroy_pane(struct window_pane *wp, int notify)
u_int sy = screen_size_y(&wp->base);
if (wp->fd != -1) {
#ifdef HAVE_UTEMPTER
utempter_remove_record(wp->fd);
kill(getpid(), SIGCHLD);
#endif
window_pane_utmp_remove(wp);
bufferevent_free(wp->event);
wp->event = NULL;
close(wp->fd);