| 378 | } |
| 379 | |
| 380 | static void ReloadProcessCallbackInternal(const ProcessResult& pr) |
| 381 | { |
| 382 | if (pr.ExitStatus != 0) { |
| 383 | Application::SetLastReloadFailed(Utility::GetTime()); |
| 384 | Log(LogCritical, "Application", "Found error in config: reloading aborted"); |
| 385 | } |
| 386 | #ifdef _WIN32 |
| 387 | else |
| 388 | Application::Exit(7); /* keep this exit code in sync with icinga-app */ |
| 389 | #endif /* _WIN32 */ |
| 390 | } |
| 391 | |
| 392 | static void ReloadProcessCallback(const ProcessResult& pr) |
| 393 | { |
no test coverage detected