Move exit_now variable to main() function
[bpdyndnsd] / src / main.cpp
index e7f1666..a801d89 100644 (file)
@@ -26,7 +26,6 @@
 using namespace std;
 
 Updater::Ptr updater;
-volatile bool exit_now = false;
 volatile bool caught_sig_hup = false;
 volatile bool caught_sig_usr1 = false;
 volatile bool caught_sig_usr2 = false;
@@ -324,6 +323,7 @@ int main(int argc, char *argv[])
     bool old_online_state = false;
     bool is_online = !updater->get_config()->get_start_offline();
     bool webcheck_enabled = updater->get_config()->get_webcheck_enabled();
+    bool exit_now = false;
 
     // One shot run if daemon mode is disabled
     if (updater->get_config()->get_daemon_mode() != 1)