diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-02-17 23:21:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-02-17 23:21:58 +0000 |
commit | 782dd941da97802108628fb068f5462f4c78f431 (patch) | |
tree | 93b73064e11f097f33e3f0cf529db3e25c67eae6 | |
parent | ba8290aeae2624555b7e1ef51d5aaba4d39ebb7d (diff) | |
download | rtmux-782dd941da97802108628fb068f5462f4c78f431.tar.gz rtmux-782dd941da97802108628fb068f5462f4c78f431.tar.bz2 rtmux-782dd941da97802108628fb068f5462f4c78f431.zip |
Fire SIGCHLD after utempter_add_record since it probably eats it.
-rw-r--r-- | window.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -21,6 +21,7 @@ #include <errno.h> #include <fcntl.h> #include <fnmatch.h> +#include <signal.h> #include <stdint.h> #include <stdlib.h> #include <string.h> @@ -915,6 +916,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); |