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

Function cbm_posix_force_tree

src/foundation/subprocess.c:1262–1277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260}
1261
1262static void cbm_posix_force_tree(cbm_subprocess_t *process, uint64_t now) {
1263 if (process->force_sent) {
1264 return;
1265 }
1266 if (process->force_started_ms == 0) {
1267 process->force_started_ms = now;
1268 }
1269 if (kill(-process->pgid, SIGKILL) == 0) {
1270 process->result.forced = true;
1271 process->force_sent = true;
1272 } else if (errno == ESRCH) {
1273 process->force_sent = true;
1274 } else {
1275 process->containment_failed = true;
1276 }
1277}
1278
1279static void cbm_posix_capture_root(cbm_subprocess_t *process, int status) {
1280 process->root_reaped = true;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected