mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-01 16:32:54 +03:00
Do not throw exceptions when handling a fatal signal
This commit is contained in:
parent
d9aee67c8b
commit
98637c5219
@ -282,7 +282,11 @@ void signal_handler(int signal)
|
|||||||
case SIGPIPE: text = "SIGPIPE"; break;
|
case SIGPIPE: text = "SIGPIPE"; break;
|
||||||
}
|
}
|
||||||
if (signal != SIGTERM)
|
if (signal != SIGTERM)
|
||||||
on_assert_failed(text);
|
{
|
||||||
|
char* callstack = Backtrace{}.desc();
|
||||||
|
write_stderr(format("Received {}, exiting.\nCallstack:\n{}", text, callstack));
|
||||||
|
free(callstack);
|
||||||
|
}
|
||||||
|
|
||||||
if (Server::has_instance())
|
if (Server::has_instance())
|
||||||
Server::instance().close_session();
|
Server::instance().close_session();
|
||||||
|
Loading…
Reference in New Issue
Block a user