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

Function bootstrap_cleanup_fail_stop

src/daemon/bootstrap.c:325–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325static _Noreturn void bootstrap_cleanup_fail_stop(const char *component) {
326 (void)fprintf(stderr,
327 "codebase-memory-mcp: coordination cleanup failed (%s); "
328 "terminating so the OS releases retained claims\n",
329 component ? component : "unknown");
330 (void)fflush(stderr);
331#ifdef _WIN32
332 (void)TerminateProcess(GetCurrentProcess(), EXIT_FAILURE);
333 abort();
334#else
335 _exit(EXIT_FAILURE);
336#endif
337}
338
339static const char BOOTSTRAP_START_FAILURE_LOG_NAME[] = "cbm-daemon.start-failures.log";
340

Calls 2

abortFunction · 0.85
_exitFunction · 0.85

Tested by

no test coverage detected