mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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:
parent
fd9c0c8543
commit
30faa6485a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user