| 952 | } |
| 953 | |
| 954 | static 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. */ |
| 968 | static u8 *master_wait_sync_reply(const tal_t *ctx, |
no test coverage detected