mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Catch exceptions thrown by RunWorker on Windows
The same is already done on other platforms in line 529.
This commit is contained in:
parent
c6cf9c6279
commit
b1536eac6f
@ -641,7 +641,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…
x
Reference in New Issue
Block a user