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

Function cbm_subprocess_destroy

src/foundation/subprocess.c:1439–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437}
1438
1439void cbm_subprocess_destroy(cbm_subprocess_t *process) {
1440 if (!process || atomic_load_explicit(&process->lifecycle, memory_order_acquire) !=
1441 CBM_SUBPROCESS_TERMINAL) {
1442 return;
1443 }
1444#ifdef _WIN32
1445 CloseHandle(process->process);
1446 CloseHandle(process->job);
1447#endif
1448 cbm_subprocess_free_config(process);
1449}
1450
1451int cbm_subprocess_run(const cbm_proc_opts_t *opts, cbm_proc_result_t *out) {
1452 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