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

Function destroy_peer_fd

lightningd/peer_fd.c:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <unistd.h>
5
6static void destroy_peer_fd(struct peer_fd *peer_fd)
7{
8 if (peer_fd->fd != -1)
9 close(peer_fd->fd);
10}
11
12struct peer_fd *new_peer_fd(const tal_t *ctx, int peer_fdnum)
13{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected