subdaemons: copy backtraces to stderr.

We didn't get the entire thing in the parent when gossipd crashed: stderr
is suitable for these I think.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-03-02 19:29:17 +10:30 committed by Christian Decker
parent fd9c0c8543
commit 30faa6485a

View File

@ -18,6 +18,8 @@ static int backtrace_status(void *unused UNUSED, uintptr_t pc,
const char *filename, int lineno, const char *filename, int lineno,
const char *function) const char *function)
{ {
fprintf(stderr, "backtrace: %s:%u (%s) %p\n",
filename, lineno, function, (void *)pc);
status_trace("backtrace: %s:%u (%s) %p", status_trace("backtrace: %s:%u (%s) %p",
filename, lineno, function, (void *)pc); filename, lineno, function, (void *)pc);
return 0; return 0;