mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-22 17:28:02 +02:00
Also rethrow exceptions on non-windows for testing
This commit is contained in:
parent
fc89dedfd0
commit
736dfcf5bd
@ -497,6 +497,7 @@ static pid_t StartUnixWorker(const std::vector<std::string>& configs, bool close
|
|||||||
_exit(RunWorker(configs, closeConsoleLog, stderrFile));
|
_exit(RunWorker(configs, closeConsoleLog, stderrFile));
|
||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
Log(LogCritical, "cli") << "Exception in main process: " << DiagnosticInformation(ex);
|
Log(LogCritical, "cli") << "Exception in main process: " << DiagnosticInformation(ex);
|
||||||
|
throw;
|
||||||
_exit(EXIT_FAILURE);
|
_exit(EXIT_FAILURE);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
throw;
|
throw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user