Disable vfork() on OS X

fixes #8131
This commit is contained in:
Gunnar Beutner 2014-12-19 16:04:34 +01:00
parent 6206f78ef0
commit 4e5649f0d7
1 changed files with 4 additions and 0 deletions

View File

@ -315,7 +315,11 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
Logger::DisableTimestamp(false);
if (!ScriptGlobal::Exists("UseVfork"))
#ifdef __APPLE__
ScriptGlobal::Set("UseVfork", false);
#else /* __APPLE__ */
ScriptGlobal::Set("UseVfork", true);
#endif /* __APPLE__ */
Log(LogInformation, "cli")
<< "Icinga application loader (version: " << Application::GetVersion()