mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 05:34:24 +00:00
Wait for pane exit status in all cases not just remain-on-exit since
events need it.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: server-fn.c,v 1.151 2026/08/20 09:19:24 nicm Exp $ */
|
/* $OpenBSD: server-fn.c,v 1.152 2026/09/03 19:12:36 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -376,9 +376,9 @@ server_destroy_pane(struct window_pane *wp, int notify)
|
|||||||
wp->pipe_fd = -1;
|
wp->pipe_fd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
remain_on_exit = options_get_number(wp->options, "remain-on-exit");
|
if (~wp->flags & PANE_STATUSREADY)
|
||||||
if (remain_on_exit != 0 && (~wp->flags & PANE_STATUSREADY))
|
|
||||||
return;
|
return;
|
||||||
|
remain_on_exit = options_get_number(wp->options, "remain-on-exit");
|
||||||
switch (remain_on_exit) {
|
switch (remain_on_exit) {
|
||||||
case 0:
|
case 0:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user