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

Function cbm_subprocess_destroy

src/foundation/subprocess.c:1294–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292}
1293
1294void cbm_subprocess_destroy(cbm_subprocess_t *process) {
1295 if (!process || atomic_load_explicit(&process->lifecycle, memory_order_acquire) !=
1296 CBM_SUBPROCESS_TERMINAL) {
1297 return;
1298 }
1299#ifdef _WIN32
1300 CloseHandle(process->process);
1301 CloseHandle(process->job);
1302#endif
1303 cbm_subprocess_free_config(process);
1304}
1305
1306int cbm_subprocess_run(const cbm_proc_opts_t *opts, cbm_proc_result_t *out) {
1307 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