mirror of
https://github.com/tmux/tmux.git
synced 2025-11-01 15:06:06 +00:00
Send SIGCHLD after utempter_remove_record as well. GitHub issue 4559.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
1
window.c
1
window.c
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user