summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-12-02 15:06:14 +0000
committernicm <nicm@openbsd.org>2009-12-02 15:06:14 +0000
commita236b623b474213355cd8c2896ba8274bbcce3c7 (patch)
tree4c4dae111e246ae5176246d673b5eb23ce87dad7
parentand check result (diff)
downloadwireguard-openbsd-a236b623b474213355cd8c2896ba8274bbcce3c7.tar.xz
wireguard-openbsd-a236b623b474213355cd8c2896ba8274bbcce3c7.zip
Close the pane if the process died due to a signal, not just if it exited
normally.
-rw-r--r--usr.bin/tmux/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 859fac460e6..7dce46261d5 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.78 2009/11/26 21:37:13 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.79 2009/12/02 15:06:14 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -431,7 +431,7 @@ server_child_signal(void)
}
if (WIFSTOPPED(status))
server_child_stopped(pid, status);
- else if (WIFEXITED(status))
+ else if (WIFEXITED(status) || WIFSIGNALED(status))
server_child_exited(pid, status);
}
}