diff options
Diffstat (limited to 'src/exit/exit.c')
-rw-r--r-- | src/exit/exit.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/exit/exit.c b/src/exit/exit.c index 353f50b7..695bdc05 100644 --- a/src/exit/exit.c +++ b/src/exit/exit.c @@ -1,8 +1,6 @@ #include <stdlib.h> #include <stdint.h> #include "libc.h" -#include "atomic.h" -#include "syscall.h" static void dummy() { @@ -21,11 +19,6 @@ extern void (*const __fini_array_end)() __attribute__((weak)); _Noreturn void exit(int code) { - static int lock; - - /* If more than one thread calls exit, hang until _Exit ends it all */ - while (a_swap(&lock, 1)) __syscall(SYS_pause); - __funcs_on_exit(); #ifndef SHARED |