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:
parent
70dfb4ba6b
commit
2162157752
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user