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

Function lightningd_exit

lightningd/lightningd.c:959–965  ·  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

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

Callers 1

destroy_pluginFunction · 0.85

Calls 1

io_breakFunction · 0.85

Tested by

no test coverage detected