Variables modified inside signal handlers should be volatile
[bpdyndnsd] / src / main.cpp
index 8b038e0..6d00532 100644 (file)
@@ -26,8 +26,8 @@
 using namespace std;
 
 Updater::Ptr updater;
-bool is_online = false;
-bool webcheck_enabled = false;
+volatile bool is_online = false;
+volatile bool webcheck_enabled = false;
 
 /**
  * Checks if a bpdyndnsd process is already running.