mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
daemon: print version in crash backtrace.
Sometimes people only send us the crash, not the logs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
56046d470b
commit
02b55e35b8
1 changed files with 2 additions and 2 deletions
|
@ -32,12 +32,12 @@ static int backtrace_status(void *unused UNUSED, uintptr_t pc,
|
|||
static void crashdump(int sig)
|
||||
{
|
||||
/* We do stderr first, since it's most reliable. */
|
||||
warnx("Fatal signal %d", sig);
|
||||
warnx("Fatal signal %d (version %s)", sig, version());
|
||||
if (backtrace_state)
|
||||
backtrace_print(backtrace_state, 0, stderr);
|
||||
|
||||
/* Now send to parent. */
|
||||
bt_print("FATAL SIGNAL %d", sig);
|
||||
bt_print("FATAL SIGNAL %d (version %s)", sig, version());
|
||||
if (backtrace_state)
|
||||
backtrace_full(backtrace_state, 0, backtrace_status, NULL, NULL);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue