You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a side effect of using libutempter which puts in its own SIGCHLD handler; if the tmux child exits while utempter has its handler in, tmux will never get the SIGCHLD.
This is a side effect of using libutempter which puts in its own
SIGCHLD handler; if the tmux child exits while utempter has its
handler in, tmux will never get the SIGCHLD.
I do the above (more or less) in a script, my best bet, it seems it to
do a:
trap 'pkill -CHLD tmux' 0
or is there a better way?
Activity
nicm commentedon Feb 17, 2016
This is a side effect of using libutempter which puts in its own SIGCHLD handler; if the tmux child exits while utempter has its handler in, tmux will never get the SIGCHLD.
nicm commentedon Feb 17, 2016
You can try this
diff --git a/window.c b/window.c
index a89b108..7a74afb 100644
--- a/window.c
+++ b/window.c
@@ -915,6 +915,7 @@ window_pane_spawn(struct window_pane _wp, int argc, char *_argv,
#ifdef HAVE_UTEMPTER
xsnprintf(s, sizeof s, "tmux(%lu).%%%u", (long) getpid(), wp->id);
utempter_add_record(wp->fd, s);
kill(getpid(), SIGCHLD);
#endif
setblocking(wp->fd, 0);
On Wed, Feb 17, 2016 at 06:41:04AM -0800, moosotc wrote:
nicm commentedon Feb 17, 2016
Applied this anyway.
lock commentedon Feb 16, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.