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

Function shutdown_global_subdaemons

lightningd/lightningd.c:571–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571static void shutdown_global_subdaemons(struct lightningd *ld)
572{
573 /* Let everyone shutdown cleanly. */
574 close(ld->hsm_fd);
575
576 /*~ The three "global" daemons, which we shutdown explicitly: we
577 * give them 10 seconds to exit gracefully before killing them. */
578 ld->connectd = subd_shutdown(ld->connectd, 10);
579 ld->gossip = subd_shutdown(ld->gossip, 10);
580 ld->hsm = subd_shutdown(ld->hsm, 10);
581}
582
583/*~ Our wallet logic needs to know what outputs we might be interested in. We
584 * use BIP32 (a.k.a. "HD wallet") to generate keys from a single seed, so we

Callers 1

mainFunction · 0.85

Calls 1

subd_shutdownFunction · 0.85

Tested by

no test coverage detected