MCPcopy Create free account
hub / github.com/ElementsProject/lightning / subdaemon_setup

Function subdaemon_setup

common/subdaemon.c:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void subdaemon_setup(int argc, char *argv[])
22{
23 if (argc == 2 && streq(argv[1], "--version")) {
24 printf("%s\n", version());
25 exit(0);
26 }
27
28 for (int i = 1; i < argc; i++) {
29 if (streq(argv[i], "--log-io"))
30 logging_io = true;
31 }
32
33 daemon_maybe_debug(argv);
34
35 daemon_setup(argv[0], status_backtrace_print, status_backtrace_exit);
36}

Callers 5

mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 3

versionFunction · 0.70
daemon_maybe_debugFunction · 0.70
daemon_setupFunction · 0.70

Tested by

no test coverage detected