diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index e7ec7593..fa98a9d4 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -111,10 +111,9 @@ inline std::string normalizeRootUrl(std::string rootUrl) return rootUrl.empty() ? rootUrl : "/" + rootUrl; } +#ifndef _WIN32 volatile sig_atomic_t waiting = false; volatile sig_atomic_t libraryMustBeReloaded = false; - -#ifndef _WIN32 void handle_sigterm(int signum) { if ( waiting == false ) { @@ -144,6 +143,9 @@ void setup_sighandlers() set_signal_handler(SIGINT, &handle_sigterm); set_signal_handler(SIGHUP, &handle_sighup); } +#else +bool waiting = false; +bool libraryMustBeReloaded = false; #endif uint64_t fileModificationTime(const std::string& path)