lightningd: dump backtrace on crash or fatal().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-09-12 14:26:45 +09:30
committed by Christian Decker
parent dba27188b7
commit db19873ee4
3 changed files with 21 additions and 5 deletions

View File

@@ -211,7 +211,7 @@ int main(int argc, char *argv[])
newdir = handle_opts(ld, argc, argv);
/* Activate crash log now we're in the right place. */
crashlog_activate(ld->log);
crashlog_activate(argv[0], ld->log);
/* Ignore SIGPIPE: we look at our write return values*/
signal(SIGPIPE, SIG_IGN);