X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_atfork.c;h=a40d7f63287079c2ce538360305b86e7174b06e9;hb=2488d31f5a946e63e40058baf29fd2991343ea6f;hp=95fce20798e83bd0a0362b4b743ea24dcc9a4fef;hpb=4750cf4202c29a895639b89099a7bdbe9ae422b6;p=musl 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) {