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

Function close_taken_fds

lightningd/subd.c:191–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191static void close_taken_fds(va_list *ap)
192{
193 int *fd;
194
195 while ((fd = va_arg(*ap, int *)) != NULL) {
196 if (taken(fd) && *fd >= 0) {
197 close(*fd);
198 *fd = -1;
199 }
200 }
201}
202
203/* We use sockets, not pipes, because fds are bidir. */
204static int subd(const char *path, const char *name,

Callers 1

subdFunction · 0.85

Calls 1

takenFunction · 0.85

Tested by

no test coverage detected