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

Function lightningd_exit

lightningd/lightningd.c:860–866  ·  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

858
859/*~ This signals to the mainloop that some part wants to cleanly exit now. */
860void lightningd_exit(struct lightningd *ld, int exit_code)
861{
862 ld->exit_code = tal(ld, int);
863 *ld->exit_code = exit_code;
864 log_debug(ld->log, "io_break: %s", __func__);
865 io_break(ld);
866}
867
868int main(int argc, char *argv[])
869{

Callers 1

destroy_pluginFunction · 0.85

Calls 1

io_breakFunction · 0.85

Tested by

no test coverage detected