mirror of
https://github.com/tmux/tmux.git
synced 2024-11-07 19:58:51 +00:00
Fire SIGCHLD after utempter_add_record since it probably eats it.
This commit is contained in:
parent
ba8290aeae
commit
782dd941da
2
window.c
2
window.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user