diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-12-18 15:58:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-12-18 15:58:06 +0000 |
commit | 54efe337993b5571728a09b247c7f39d493659a8 (patch) | |
tree | e796b46e823e38bbabd93b441b3a15138903b523 /spawn.c | |
parent | d0cd68d5e41326f50ceda58728791b08952c08d6 (diff) | |
download | rtmux-54efe337993b5571728a09b247c7f39d493659a8.tar.gz rtmux-54efe337993b5571728a09b247c7f39d493659a8.tar.bz2 rtmux-54efe337993b5571728a09b247c7f39d493659a8.zip |
Add back utempter code, reported by Peter Schellenbach.
Diffstat (limited to 'spawn.c')
-rw-r--r-- | spawn.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -433,6 +433,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; |