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

@@ -87,7 +87,7 @@ void log_each_line_(const struct log_book *lr,
void log_dump_to_file(int fd, const struct log_book *lr);
void opt_register_logging(struct log *log);
void crashlog_activate(struct log *log);
void crashlog_activate(const char *argv0, struct log *log);
/* Convenience parent for temporary allocations (eg. type_to_string)
* during log calls; freed after every log_*() */