mirror of https://github.com/Icinga/icinga2.git
Catch exceptions thrown by RunWorker on Windows
The same is already done on other platforms in line 529.
This commit is contained in:
parent
9219f68c83
commit
d7833a5977
|
@ -688,7 +688,11 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
|
|||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
return RunWorker(configs);
|
||||
try {
|
||||
return RunWorker(configs);
|
||||
} catch (...) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
#else /* _WIN32 */
|
||||
l_UmbrellaPid = getpid();
|
||||
Application::SetUmbrellaProcess(l_UmbrellaPid);
|
||||
|
|
Loading…
Reference in New Issue