Browse Source

lightningd: don't try to perform backtrace if LIGHTNINGD_DEV_NO_BACKTRACE

Valgrind gets upset.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
feb6b52f0f
  1. 2
      common/daemon.c

2
common/daemon.c

@ -33,10 +33,12 @@ static void crashdump(int sig)
{
/* We do stderr first, since it's most reliable. */
warnx("Fatal signal %d", sig);
if (backtrace_state)
backtrace_print(backtrace_state, 0, stderr);
/* Now send to parent. */
bt_print("FATAL SIGNAL %d", sig);
if (backtrace_state)
backtrace_full(backtrace_state, 0, backtrace_status, NULL, NULL);
/* Probably shouldn't return. */

Loading…
Cancel
Save