Freeing the request frees our copy of the fd. */
| 515 | |
| 516 | /* Freeing the request frees our copy of the fd. */ |
| 517 | static void peer_connect_subd_reply(struct subd *connectd UNUSED, |
| 518 | const u8 *reply, |
| 519 | const int *fds UNUSED, |
| 520 | struct peer_fd *our_copy UNUSED) |
| 521 | { |
| 522 | if (!fromwire_connectd_peer_connect_subd_reply(reply)) |
| 523 | fatal("Bad connectd_peer_connect_subd_reply: %s", |
| 524 | tal_hex(reply, reply)); |
| 525 | } |
| 526 | |
| 527 | /*~ On macOS, a socket whose only reference is in flight over SCM_RIGHTS can |
| 528 | * arrive unable to read. So connectd gets a dup, and we keep ours until it |