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

Function sp_stdin_safe_run

tests/test_subprocess.c:2144–2147  ·  view source on GitHub ↗

Do not remove inputs/captures following failed containment. Terminal handles * may be destroyed, but a nonquiescent tree's fixture is intentionally retained. */

Source from the content-addressed store, hash-verified

2142/* Do not remove inputs/captures following failed containment. Terminal handles
2143 * may be destroyed, but a nonquiescent tree's fixture is intentionally retained. */
2144static bool sp_stdin_safe_run(int rc, const cbm_proc_result_t *result) {
2145 return result->tree_quiesced ||
2146 (rc == -1 && result->outcome == CBM_PROC_SPAWN_FAILED && !result->supervision_failed);
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);

Callers 3

sp_stdin_check_rejectionFunction · 0.85
sp_stdin_probeFunction · 0.85
test_subprocess.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected