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

Function lightningd_exit

lightningd/lightningd.c:957–963  ·  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

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

Callers 1

destroy_pluginFunction · 0.85

Calls 1

io_breakFunction · 0.85

Tested by

no test coverage detected