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

Function cbm_daemon_runtime_service_stop

src/daemon/runtime.c:2418–2428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2416}
2417
2418bool cbm_daemon_runtime_service_stop(cbm_daemon_runtime_service_t *service, uint32_t timeout_ms) {
2419 if (!service) {
2420 return false;
2421 }
2422 if (cbm_daemon_runtime_service_state(service) == CBM_DAEMON_RUNTIME_SERVICE_EXITED) {
2423 return cbm_daemon_runtime_service_wait_exited(service, timeout_ms);
2424 }
2425 runtime_service_begin_stopping(service, timeout_ms, true, "service_stop");
2426 runtime_service_interrupt_connections(service);
2427 return cbm_daemon_runtime_service_wait_exited(service, timeout_ms);
2428}
2429
2430bool cbm_daemon_runtime_service_free(cbm_daemon_runtime_service_t *service) {
2431 if (!service ||

Callers 6

host_wait_for_lifetimeFunction · 0.85
host_runtime_stop_freeFunction · 0.85

Tested by 3