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

Function peer_connect_subd_reply

lightningd/connect_control.c:517–525  ·  view source on GitHub ↗

Freeing the request frees our copy of the fd. */

Source from the content-addressed store, hash-verified

515
516/* Freeing the request frees our copy of the fd. */
517static 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

Callers

nothing calls this directly

Calls 2

tal_hexFunction · 0.85
fatalFunction · 0.70

Tested by

no test coverage detected