summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/_exit.c')
-rw-r--r--libc/sysdeps/linux/common/_exit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/_exit.c b/libc/sysdeps/linux/common/_exit.c
index 2a1b2c941..d0a4ee1d6 100644
--- a/libc/sysdeps/linux/common/_exit.c
+++ b/libc/sysdeps/linux/common/_exit.c
@@ -32,8 +32,10 @@
static inline _syscall1(void, __syscall_exit, int, status);
#endif
-void _exit(int status)
+void attribute_noreturn _exit(int status)
{
- INLINE_SYSCALL(exit, 1, status);
+ /* The loop is added only to keep gcc happy. */
+ while(1)
+ INLINE_SYSCALL(exit, 1, status);
}