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

Function shutdown_global_subdaemons

lightningd/lightningd.c:662–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662static void shutdown_global_subdaemons(struct lightningd *ld)
663{
664 /* Let everyone shutdown cleanly. */
665 close(ld->hsm_fd);
666
667 /*~ The three "global" daemons, which we shutdown explicitly: we
668 * give them 10 seconds to exit gracefully before killing them. */
669 ld->connectd = subd_shutdown(ld->connectd, 10);
670 ld->gossip = subd_shutdown(ld->gossip, 10);
671 ld->hsm = subd_shutdown(ld->hsm, 10);
672}
673
674/*~ The normal advice for daemons is to move into the root directory, so you
675 * don't prevent unmounting whatever filesystem you happen to start in.

Callers 1

mainFunction · 0.85

Calls 1

subd_shutdownFunction · 0.85

Tested by

no test coverage detected