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

Function lightningd_exit

lightningd/lightningd.c:956–962  ·  view source on GitHub ↗

~ This signals to the mainloop that some part wants to cleanly exit now. */

Source from the content-addressed store, hash-verified

954
955/*~ This signals to the mainloop that some part wants to cleanly exit now. */
956void lightningd_exit(struct lightningd *ld, int exit_code)
957{
958 ld->exit_code = tal(ld, int);
959 *ld->exit_code = exit_code;
960 log_debug(ld->log, "io_break: %s", __func__);
961 io_break(ld);
962}
963
964struct recover_payload {
965 const char *codex32secret;

Callers 1

destroy_pluginFunction · 0.85

Calls 1

io_breakFunction · 0.85

Tested by

no test coverage detected