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

Function make_tree_pid_path

tests/test_subprocess.c:642–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642static bool make_tree_pid_path(char path[64]) {
643 strcpy(path, "/tmp/cbm-subprocess-tree-XXXXXX");
644 int fd = cbm_mkstemp(path);
645 if (fd < 0) {
646 return false;
647 }
648 (void)close(fd);
649 return unlink(path) == 0; /* child creates it only after both traps are installed */
650}
651
652static bool wait_for_tree_pids(const char *path, cbm_subprocess_t *process, pid_t *parent_pid,
653 pid_t *grandchild_pid, int timeout_ms) {

Callers 1

test_subprocess.cFile · 0.85

Calls 2

cbm_mkstempFunction · 0.85
closeFunction · 0.50

Tested by

no test coverage detected