diff options
Diffstat (limited to 'src/unistd/_exit.c')
| -rw-r--r-- | src/unistd/_exit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/unistd/_exit.c b/src/unistd/_exit.c index 4f1ef7e6..618b839c 100644 --- a/src/unistd/_exit.c +++ b/src/unistd/_exit.c @@ -5,8 +5,10 @@ void _exit(int status) { - __syscall(((syscall_lookup_t)__libc(SYSCALL_LOOKUP))("exit"), status); - for (;;); + long scno = ((syscall_lookup_t)__libc(SYSCALL_LOOKUP))("exit"); + for (;;) { + __syscall(scno, status); + } } /* POSIX(1) |
