mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
Add back utempter code, reported by Peter Schellenbach.
This commit is contained in:
parent
d0cd68d5e4
commit
54efe33799
9
spawn.c
9
spawn.c
@ -433,6 +433,15 @@ spawn_pane(struct spawn_context *sc, char **cause)
|
|||||||
_exit(1);
|
_exit(1);
|
||||||
|
|
||||||
complete:
|
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->pipe_off = 0;
|
||||||
new_wp->flags &= ~PANE_EXITED;
|
new_wp->flags &= ~PANE_EXITED;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user