projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'nsz/master'
[musl]
/
src
/
exit
/
exit.c
diff --git
a/src/exit/exit.c
b/src/exit/exit.c
index
1ff19db
..
ae557c0
100644
(file)
--- a/
src/exit/exit.c
+++ b/
src/exit/exit.c
@@
-13,10
+13,10
@@
weak_alias(dummy, __fflush_on_exit);
void exit(int code)
{
- static int lock;
+ static int lock
[2]
;
/* If more than one thread calls exit, hang until _Exit ends it all */
- LOCK(
&
lock);
+ LOCK(lock);
/* Only do atexit & stdio flush if they were actually used */
__funcs_on_exit();