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

Function close_fd

tests/test_coverage_parent_failure.c:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static bool close_fd(int *fd) {
103 if (*fd < 0)
104 return true;
105 int owned = *fd;
106 *fd = -1;
107 return close(owned) == 0;
108}
109
110static bool restore_parent(Fixture *f) {
111 if (f->parent_restore_pending) {

Callers 3

child_runFunction · 0.70
launchFunction · 0.70
fixtureFunction · 0.70

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected