mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
Close the pane if the process died due to a signal, not just if it exited
normally.
This commit is contained in:
2
server.c
2
server.c
@ -431,7 +431,7 @@ server_child_signal(void)
|
|||||||
}
|
}
|
||||||
if (WIFSTOPPED(status))
|
if (WIFSTOPPED(status))
|
||||||
server_child_stopped(pid, status);
|
server_child_stopped(pid, status);
|
||||||
else if (WIFEXITED(status))
|
else if (WIFEXITED(status) || WIFSIGNALED(status))
|
||||||
server_child_exited(pid, status);
|
server_child_exited(pid, status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user