Print signal number while dying
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
d2f06a196b
commit
36329f9fa6
|
@ -256,7 +256,7 @@ signal_fatal(int signum)
|
||||||
{
|
{
|
||||||
buffer_t buf;
|
buffer_t buf;
|
||||||
backtrace_get(&buf);
|
backtrace_get(&buf);
|
||||||
fatal("dumping backtrace\n%s", buf.s);
|
fatal("signal %d, dumping backtrace\n%s", signum, buf.s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Function to exit on some signals.
|
/** Function to exit on some signals.
|
||||||
|
|
Loading…
Reference in New Issue