mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
1a4a59d221
In particular, the main daemon and subdaemons share the backtrace code, with hooks for logging. The daemon hook inserts the io_poll override, which means we no longer need io_debug.[ch]. Though most daemons don't need it, they still link against ccan/io, so it's harmess (suggested by @ZmnSCPxj). This was tested manually to make sure we get backtraces still. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
10 lines
250 B
C
10 lines
250 B
C
#ifndef LIGHTNING_COMMON_SUBDAEMON_H
|
|
#define LIGHTNING_COMMON_SUBDAEMON_H
|
|
#include "config.h"
|
|
#include <common/daemon.h>
|
|
|
|
/* daemon_setup, but for subdaemons */
|
|
void subdaemon_setup(int argc, char *argv[]);
|
|
|
|
#endif /* LIGHTNING_COMMON_SUBDAEMON_H */
|