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

Function cli_scope_status_attempt

tests/test_cli.c:1916–1924  ·  view source on GitHub ↗

One status request. A failed request still reports the PID of a live but * mute endpoint holder, which is what tells slow apart from gone. */

Source from the content-addressed store, hash-verified

1914/* One status request. A failed request still reports the PID of a live but
1915 * mute endpoint holder, which is what tells slow apart from gone. */
1916static cli_scope_attempt_t cli_scope_status_attempt(void *context) {
1917 cli_scope_status_probe_t *probe = context;
1918 memset(&probe->status, 0, sizeof(probe->status));
1919 if (cbm_daemon_runtime_request_status(probe->fixture->endpoint, &probe->fixture->identity,
1920 CLI_SCOPE_TIMEOUT_MS, &probe->status)) {
1921 return CLI_SCOPE_ANSWERED;
1922 }
1923 return probe->status.muted_endpoint_holder_pid != 0 ? CLI_SCOPE_MUTE : CLI_SCOPE_REFUSED;
1924}
1925
1926/* Ask the host daemon itself: still running, not stopping, and the parent's
1927 * committed client still admitted. A foreign-namespace install leaves this

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected