| 569 | } |
| 570 | |
| 571 | static 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 |