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)
{
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);
notify_fatal_error(msg);
}