Send SIGCHLD after utempter_remove_record as well. GitHub issue 4559.

This commit is contained in:
Nicholas Marriott
2025-07-20 19:57:50 +01:00
parent c70d0a6a69
commit fa5f3cef3d
2 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,7 @@ server_destroy_pane(struct window_pane *wp, int notify)
if (wp->fd != -1) { if (wp->fd != -1) {
#ifdef HAVE_UTEMPTER #ifdef HAVE_UTEMPTER
utempter_remove_record(wp->fd); utempter_remove_record(wp->fd);
kill(getpid(), SIGCHLD);
#endif #endif
bufferevent_free(wp->event); bufferevent_free(wp->event);
wp->event = NULL; wp->event = NULL;

View File

@ -982,6 +982,7 @@ window_pane_destroy(struct window_pane *wp)
if (wp->fd != -1) { if (wp->fd != -1) {
#ifdef HAVE_UTEMPTER #ifdef HAVE_UTEMPTER
utempter_remove_record(wp->fd); utempter_remove_record(wp->fd);
kill(getpid(), SIGCHLD);
#endif #endif
bufferevent_free(wp->event); bufferevent_free(wp->event);
close(wp->fd); close(wp->fd);