mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
12a39b8a79
We were using a *different* backtrace_state var, which was always NULL. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
16 lines
418 B
C
16 lines
418 B
C
#ifndef LIGHTNING_COMMON_DAEMON_H
|
|
#define LIGHTNING_COMMON_DAEMON_H
|
|
#include "config.h"
|
|
|
|
/* Common setup for all daemons */
|
|
void daemon_setup(const char *argv0,
|
|
void (*backtrace_print)(const char *fmt, ...),
|
|
void (*backtrace_exit)(void));
|
|
|
|
/* Shutdown for a valgrind-clean exit (frees everything) */
|
|
void daemon_shutdown(void);
|
|
|
|
struct backtrace_state *backtrace_state;
|
|
|
|
#endif /* LIGHTNING_COMMON_DAEMON_H */
|