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

Function cbm_posix_force_tree

src/foundation/subprocess.c:1828–1843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1826}
1827
1828static void cbm_posix_force_tree(cbm_subprocess_t *process, uint64_t now) {
1829 if (process->force_sent) {
1830 return;
1831 }
1832 if (process->force_started_ms == 0) {
1833 process->force_started_ms = now;
1834 }
1835 if (kill(-process->pgid, SIGKILL) == 0) {
1836 process->result.forced = true;
1837 process->force_sent = true;
1838 } else if (errno == ESRCH) {
1839 process->force_sent = true;
1840 } else {
1841 process->containment_failed = true;
1842 }
1843}
1844
1845static void cbm_posix_capture_root(cbm_subprocess_t *process, int status) {
1846 process->root_reaped = true;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected