1
1
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:
Maxime Coste 2015-05-28 13:44:59 +01:00
parent d9aee67c8b
commit 98637c5219

View File

@ -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();