diff options
Diffstat (limited to 'spawn.c')
-rw-r--r-- | spawn.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -19,12 +19,10 @@ #include <sys/types.h> #include <errno.h> -#include <paths.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <util.h> #include "tmux.h" @@ -437,6 +435,15 @@ spawn_pane(struct spawn_context *sc, char **cause) _exit(1); complete: +#ifdef HAVE_UTEMPTER + if (~new_wp->flags & PANE_EMPTY) { + xasprintf(&cp, "tmux(%lu).%%%u", (long)getpid(), new_wp->id); + utempter_add_record(new_wp->fd, cp); + kill(getpid(), SIGCHLD); + free(cp); + } +#endif + new_wp->pipe_off = 0; new_wp->flags &= ~PANE_EXITED; |