mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 10:02:57 +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;
|
||||
}
|
||||
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())
|
||||
Server::instance().close_session();
|
||||
|
Loading…
Reference in New Issue
Block a user