1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

Display pid in fatal signal message

This commit is contained in:
Maxime Coste 2015-06-21 19:44:43 +01:00
parent 70dfb4ba6b
commit 2162157752

View File

@ -289,7 +289,8 @@ void signal_handler(int signal)
} }
if (signal != SIGTERM) if (signal != SIGTERM)
{ {
auto msg = format("Received {}, exiting.\nCallstack:\n{}", text, Backtrace{}.desc()); auto msg = format("Received {}, exiting.\nPid: {}\nCallstack:\n{}",
text, getpid(), Backtrace{}.desc());
write_stderr(msg); write_stderr(msg);
notify_fatal_error(msg); notify_fatal_error(msg);
} }