From: Thomas Jarosch Date: Mon, 11 Oct 2010 09:19:41 +0000 (+0200) Subject: Move exit_now variable to main() function X-Git-Tag: v1.1~64 X-Git-Url: http://developer.intra2net.com/git/?p=bpdyndnsd;a=commitdiff_plain;h=f829f1f39eec5b648c0236dd8ccf69717a930c64 Move exit_now variable to main() function --- diff --git a/src/main.cpp b/src/main.cpp index e7f1666..a801d89 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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)