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

Function cbm_subprocess_destroy

src/foundation/subprocess.c:1392–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1390}
1391
1392void cbm_subprocess_destroy(cbm_subprocess_t *process) {
1393 if (!process || atomic_load_explicit(&process->lifecycle, memory_order_acquire) !=
1394 CBM_SUBPROCESS_TERMINAL) {
1395 return;
1396 }
1397#ifdef _WIN32
1398 CloseHandle(process->process);
1399 CloseHandle(process->job);
1400#endif
1401 cbm_subprocess_free_config(process);
1402}
1403
1404int cbm_subprocess_run(const cbm_proc_opts_t *opts, cbm_proc_result_t *out) {
1405 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