about summary refs log tree commit diff
path: root/src/thread/pthread_atfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_atfork.c')
-rw-r--r--src/thread/pthread_atfork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_atfork.c b/src/thread/pthread_atfork.c
index 95fce207..a40d7f63 100644
--- a/src/thread/pthread_atfork.c
+++ b/src/thread/pthread_atfork.c
@@ -8,7 +8,7 @@ static struct atfork_funcs {
 	struct atfork_funcs *prev, *next;
 } *funcs;
 
-static int lock[2];
+static volatile int lock[2];
 
 void __fork_handler(int who)
 {