mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Close the pane if the process died due to a signal, not just if it exited
normally.
This commit is contained in:
parent
0926a23014
commit
459e9de81a
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user