Fire SIGCHLD after utempter_add_record since it probably eats it.

pull/273/merge
Nicholas Marriott 2016-02-17 23:21:58 +00:00
parent ba8290aeae
commit 782dd941da
1 changed files with 2 additions and 0 deletions

View File

@ -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);