summary refs log tree commit diff
path: root/event.c
diff options
context:
space:
mode:
authorCurtis McEnroe2019-07-27 00:49:49 -0400
committerCurtis McEnroe2019-07-27 00:49:49 -0400
commit2571d6ef5533b005f0f3ece462736693f354f986 (patch)
tree7e2553ca95f20b1c5f9bbaf5cb6aba8e4697f685 /event.c
parent3d1f7d80658db3b4839febb817c610dd06a7801b (diff)
Mark sig_atomic_t array volatile
Diffstat (limited to 'event.c')
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index 2561f09..6bc9d92 100644
--- a/event.c
+++ b/event.c
@@ -105,7 +105,7 @@ static void childRead(void) {
 	}
 }
 
-static sig_atomic_t sig[NSIG];
+static volatile sig_atomic_t sig[NSIG];
 static void handler(int n) {
 	sig[n] = 1;
 }