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

Function cbm_subprocess_run

src/foundation/subprocess.c:397–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395#endif
396
397int cbm_subprocess_run(const cbm_proc_opts_t *opts, cbm_proc_result_t *out) {
398 cbm_proc_result_t local;
399 if (!out) {
400 out = &local;
401 }
402 out->outcome = CBM_PROC_SPAWN_FAILED;
403 out->exit_code = -1;
404 out->term_signal = 0;
405 if (!opts || !opts->bin || !opts->bin[0]) {
406 return -1;
407 }
408#ifdef _WIN32
409 return cbm_run_win(opts, out);
410#else
411 return cbm_run_posix(opts, out);
412#endif
413}

Callers 3

cbm_index_spawn_workerFunction · 0.85
run_shFunction · 0.85
test_subprocess.cFile · 0.85

Calls 2

cbm_run_winFunction · 0.85
cbm_run_posixFunction · 0.85

Tested by 1

run_shFunction · 0.68