diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-12-02 15:06:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-12-02 15:06:15 +0000 |
commit | 72e4920f02d4e58ec9af1cfaf59cc7286ec84fb5 (patch) | |
tree | b5bbbf858ea8a8e88e17a4df31d69147d8e6a7b6 /usr.bin | |
parent | 2db45998b260d694a26cfb1531c952f1f874347e (diff) |
Close the pane if the process died due to a signal, not just if it exited
normally.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/server.c | 4 |
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); } } |