MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / close_fd

Function close_fd

tests/test_coverage_children.c:178–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178static bool close_fd(int *fd) {
179 if (*fd < 0)
180 return true;
181 int value = *fd;
182 *fd = -1;
183 return close(value) == 0;
184}
185
186static bool reap(Child *child, bool terminate, int *status, bool *reaped) {
187 if (child->pid < 0)

Callers 3

start_childFunction · 0.70
run_childFunction · 0.70

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected