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

Function restore_parent

tests/test_coverage_parent_failure.c:110–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static bool restore_parent(Fixture *f) {
111 if (f->parent_restore_pending) {
112 f->parent_restore_pending = false;
113 if (setrlimit(RLIMIT_NOFILE, &f->saved) != 0) {
114 f->parent_restore_failed = true;
115 return false;
116 }
117 }
118 if (getrlimit(RLIMIT_NOFILE, &f->parent_restored) != 0 ||
119 !same_limit(&f->saved, &f->parent_restored)) {
120 f->parent_restore_failed = true;
121 return false;
122 }
123 return true;
124}
125
126static void child_run(Fixture *f) __attribute__((noreturn));
127static void child_run(Fixture *f) {

Callers 3

launchFunction · 0.85
observe_and_releaseFunction · 0.85
fixtureFunction · 0.85

Calls 1

same_limitFunction · 0.85

Tested by

no test coverage detected