Move exit_now variable to main() function
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 11 Oct 2010 09:19:41 +0000 (11:19 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 11 Oct 2010 09:19:41 +0000 (11:19 +0200)
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)