| 323 | } |
| 324 | |
| 325 | static _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 | |
| 339 | static const char BOOTSTRAP_START_FAILURE_LOG_NAME[] = "cbm-daemon.start-failures.log"; |
| 340 |
no test coverage detected