mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 16:05:05 +02:00
When exiting with a signal run cleanup
This commit is contained in:
@@ -382,7 +382,9 @@ read_from_zygote(void) {
|
||||
int signum = WTERMSIG(child_exit_status);
|
||||
if (signum > 0) {
|
||||
signal(signum, SIG_DFL);
|
||||
cleanup();
|
||||
kill(getpid(), signum);
|
||||
_exit(1);
|
||||
}
|
||||
} else if (WIFSTOPPED(child_exit_status)) {
|
||||
child_state = CHILD_STOPPED;
|
||||
|
||||
Reference in New Issue
Block a user