summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6303a70..b58f143 100644
--- a/src/main.c
+++ b/src/main.c
@@ -125,8 +125,8 @@ out:
pthread_mutex_unlock(&entry->mutex);
}
-static bool signals_terminate = false;
-static bool signals_reload = false;
+static volatile sig_atomic_t signals_terminate = false;
+static volatile sig_atomic_t signals_reload = false;
// NOTE: The code assumes that signal_handler will only be called in the main
// thread, which (as far as I know) is always the case on Linux.