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

Function host_force_terminate

src/daemon/host.c:944–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

host_state_freeFunction · 0.85
cbm_daemon_host_runFunction · 0.85

Calls 2

abortFunction · 0.85
_exitFunction · 0.85

Tested by

no test coverage detected