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

Function cbm_subprocess_destroy

src/foundation/subprocess.c:1461–1471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1459}
1460
1461void cbm_subprocess_destroy(cbm_subprocess_t *process) {
1462 if (!process || atomic_load_explicit(&process->lifecycle, memory_order_acquire) !=
1463 CBM_SUBPROCESS_TERMINAL) {
1464 return;
1465 }
1466#ifdef _WIN32
1467 CloseHandle(process->process);
1468 CloseHandle(process->job);
1469#endif
1470 cbm_subprocess_free_config(process);
1471}
1472
1473int cbm_subprocess_run(const cbm_proc_opts_t *opts, cbm_proc_result_t *out) {
1474 cbm_proc_result_t local;

Callers 6

watcher_git_runFunction · 0.85
cbm_index_worker_destroyFunction · 0.85
cbm_subprocess_runFunction · 0.85
test_subprocess.cFile · 0.85

Calls 1

Tested by

no test coverage detected