diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-01-27 17:22:30 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-01-27 17:22:30 +0100 |
commit | 8bf48247176886c6ca5a51b94c97a7c50ddbd270 (patch) | |
tree | 22b232d87cb415ad2b58b3f0ec0eb22010f2c52f | |
parent | 8f8929ce425236543b003d181e7c811245087821 (diff) | |
download | rvnit-8bf48247176886c6ca5a51b94c97a7c50ddbd270.tar.gz rvnit-8bf48247176886c6ca5a51b94c97a7c50ddbd270.tar.xz rvnit-8bf48247176886c6ca5a51b94c97a7c50ddbd270.zip |
sig_atomic_t should be used with volatile
-rw-r--r-- | rvnit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rvnit.c b/rvnit.c index 8175b35..04b6f80 100644 --- a/rvnit.c +++ b/rvnit.c @@ -61,10 +61,10 @@ int globallogfd[2]; int pid1; int use_global_log; -sig_atomic_t want_shutdown; -sig_atomic_t want_rescan; -sig_atomic_t want_rescandir; -sig_atomic_t want_reboot; +volatile sig_atomic_t want_shutdown; +volatile sig_atomic_t want_rescan; +volatile sig_atomic_t want_rescandir; +volatile sig_atomic_t want_reboot; void on_sigint(int sig) |