Fix: IcingaUseVfork warning when spawning child processes.

Fixes #5607
This commit is contained in:
Gunnar Beutner 2014-02-05 14:32:56 +01:00
parent a6a13ab86c
commit 9116c58b24
1 changed files with 2 additions and 0 deletions

View File

@ -334,6 +334,8 @@ int main(int argc, char **argv)
Application::DeclareStatePath(Application::GetLocalStateDir() + "/lib/icinga2/icinga2.state");
Application::DeclarePidPath(Application::GetLocalStateDir() + "/run/icinga2/icinga2.pid");
ScriptVariable::Set("IcingaUseVfork", true, false, true);
Application::MakeVariablesConstant();
Log(LogInformation, "icinga-app", "Icinga application loader (version: " + Application::GetVersion() + ")");