Merge pull request #6037 from Icinga/fix/windows-build-fix

Fix build error on Windows
This commit is contained in:
Gunnar Beutner 2018-01-29 08:28:18 +01:00 committed by GitHub
commit 3f6b61faf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,7 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
return EXIT_SUCCESS;
}
#ifndef _WIN32
if (vm.count("reload-internal")) {
/* We went through validation and now ask the old process kindly to die */
Log(LogInformation, "cli", "Requesting to take over.");
@ -227,6 +228,7 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
return EXIT_FAILURE;
}
}
#endif /* _WIN32 */
if (vm.count("daemonize")) {
if (!vm.count("reload-internal")) {