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

Function close_taken_fds

lightningd/subd.c:189–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

subdFunction · 0.85

Calls 1

takenFunction · 0.85

Tested by

no test coverage detected