mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 17:14: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
9219f68c83
commit
d7833a5977
@ -688,7 +688,11 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return RunWorker(configs);
|
try {
|
||||||
|
return RunWorker(configs);
|
||||||
|
} catch (...) {
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
l_UmbrellaPid = getpid();
|
l_UmbrellaPid = getpid();
|
||||||
Application::SetUmbrellaProcess(l_UmbrellaPid);
|
Application::SetUmbrellaProcess(l_UmbrellaPid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user