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

Function sp_stdin_finish

tests/test_subprocess.c:2149–2158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2147}
2148
2149static bool sp_stdin_finish(cbm_subprocess_t *process, cbm_proc_result_t *result) {
2150 bool terminal = sp_stdout_poll_terminal(process, result, cbm_now_ms() + 10000U);
2151 if (!terminal) {
2152 (void)cbm_subprocess_request_cancel(process);
2153 terminal = sp_stdout_poll_terminal(process, result, cbm_now_ms() + 4000U);
2154 }
2155 if (terminal)
2156 cbm_subprocess_destroy(process);
2157 return terminal && result->tree_quiesced && !result->supervision_failed;
2158}
2159
2160static int sp_stdin_run(cbm_proc_opts_t *opts, cbm_proc_result_t *result) {
2161 const char *argv[] = {sp_stdout_test_binary, "__cbm_subprocess_stdin_probe", "echo", "", NULL};

Callers 2

sp_stdin_check_rejectionFunction · 0.85
test_subprocess.cFile · 0.85

Calls 4

sp_stdout_poll_terminalFunction · 0.85
cbm_now_msFunction · 0.85
cbm_subprocess_destroyFunction · 0.85

Tested by

no test coverage detected