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

Function host_force_terminate

src/daemon/host.c:937–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935}
936
937static _Noreturn void host_force_terminate(const char *component) {
938 /* The operation-log sink flushes every record before returning. Do not run
939 * ordinary teardown after the cooperative deadline: a callback thread may
940 * still own application storage. Process termination releases native
941 * locks, and supervised worker groups observe their daemon parent's death. */
942 cbm_log_error("daemon.forced_shutdown", "component", component);
943#ifdef _WIN32
944 (void)TerminateProcess(GetCurrentProcess(), EXIT_FAILURE);
945 abort();
946#else
947 _exit(EXIT_FAILURE);
948#endif
949}
950
951_Noreturn void cbm_daemon_host_force_terminate_for_test(const char *component) {
952 char conflict_log[HOST_PATH_CAP];

Callers 4

host_state_freeFunction · 0.85
cbm_daemon_host_runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected