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

Function cbm_subprocess_destroy

src/foundation/subprocess.c:1425–1435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423}
1424
1425void cbm_subprocess_destroy(cbm_subprocess_t *process) {
1426 if (!process || atomic_load_explicit(&process->lifecycle, memory_order_acquire) !=
1427 CBM_SUBPROCESS_TERMINAL) {
1428 return;
1429 }
1430#ifdef _WIN32
1431 CloseHandle(process->process);
1432 CloseHandle(process->job);
1433#endif
1434 cbm_subprocess_free_config(process);
1435}
1436
1437int cbm_subprocess_run(const cbm_proc_opts_t *opts, cbm_proc_result_t *out) {
1438 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