mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-30 11:20:34 +02:00
Fix build error on Windows
The `kill` and `SIGUSR2` statements are not available on Windows.
This commit is contained in:
parent
ae7cd01052
commit
12c4a1be1f
@ -217,6 +217,7 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
|
|||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
if (vm.count("reload-internal")) {
|
if (vm.count("reload-internal")) {
|
||||||
/* We went through validation and now ask the old process kindly to die */
|
/* We went through validation and now ask the old process kindly to die */
|
||||||
Log(LogInformation, "cli", "Requesting to take over.");
|
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;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
if (vm.count("daemonize")) {
|
if (vm.count("daemonize")) {
|
||||||
if (!vm.count("reload-internal")) {
|
if (!vm.count("reload-internal")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user