From a292c8c410c54cf80694dfbf0a4d964462addc86 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Wed, 6 Oct 2010 14:36:26 +0200 Subject: [PATCH] Variables modified inside signal handlers should be volatile --- src/main.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8b038e0..6d00532 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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. -- 1.7.1