summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-10-12 11:32:27 +0000
committernicm <nicm@openbsd.org>2017-10-12 11:32:27 +0000
commit514fd64db65eb8fdaad8eb512948cdee09ecebcf (patch)
treee2fa375efe72c9b2216fb2f6ae796dff6583ae2e /usr.bin/tmux/server.c
parentadd -G to usage(); (diff)
downloadwireguard-openbsd-514fd64db65eb8fdaad8eb512948cdee09ecebcf.tar.xz
wireguard-openbsd-514fd64db65eb8fdaad8eb512948cdee09ecebcf.zip
Show exit status and time in the remain-on-exit pane text, mostly from
Timo Boettcher in GitHub issue 1103.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 6ee356ffa6e..4bbb1878c8c 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.176 2017/07/14 18:49:07 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.177 2017/10/12 11:32:27 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -424,6 +424,7 @@ server_child_exited(pid_t pid, int status)
TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->pid == pid) {
wp->status = status;
+ wp->flags |= PANE_STATUSREADY;
log_debug("%%%u exited", wp->id);
wp->flags |= PANE_EXITED;