about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-01-27 14:46:59 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-01-27 14:46:59 +0100
commit0e68d09804fb9ec82af37045fb37c2ceefa391d5 (patch)
treeda0e1ad37d40700d5c8dd912059bfa0bf37a5c63
parent6f867cfeeafbd4ba76126845eb9c357fa4dcb156 (diff)
downloadreap-0e68d09804fb9ec82af37045fb37c2ceefa391d5.tar.gz
reap-0e68d09804fb9ec82af37045fb37c2ceefa391d5.tar.xz
reap-0e68d09804fb9ec82af37045fb37c2ceefa391d5.zip
sig_atomic_t should be used with volatile
-rw-r--r--reap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reap.c b/reap.c
index 190068a..36e3884 100644
--- a/reap.c
+++ b/reap.c
@@ -21,7 +21,7 @@
 #include <unistd.h>
 #include <signal.h>
 
-sig_atomic_t do_slay;
+volatile sig_atomic_t do_slay;
 int do_wait;
 int verbose;
 int no_new_privs;