Skip to content

Commit

Permalink
Add back utempter code, reported by Peter Schellenbach.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Dec 18, 2019
1 parent d0cd68d commit 54efe33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 54efe33

Please sign in to comment.