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

Function send_shutdown_complete

channeld/channeld.c:954–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954static void send_shutdown_complete(struct peer *peer)
955{
956 /* Now we can tell master shutdown is complete. */
957 wire_sync_write(MASTER_FD,
958 take(towire_channeld_shutdown_complete(NULL)));
959 per_peer_state_fdpass_send(MASTER_FD, peer->pps);
960
961 /* Give master a chance to pass the fd along */
962 sleep(1);
963
964 close(MASTER_FD);
965}
966
967/* This queues other traffic from the fd until we get reply. */
968static u8 *master_wait_sync_reply(const tal_t *ctx,

Callers 2

peer_reconnectFunction · 0.85
mainFunction · 0.85

Calls 2

wire_sync_writeFunction · 0.50

Tested by

no test coverage detected