From f87c7bd4133a2b3ad9b45c32fab33d167a348c4b Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Fri, 18 Nov 2005 03:14:53 +0000 Subject: Massive merge from trunk. --- libc/sysdeps/linux/common/_exit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/_exit.c') 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); } -- cgit v1.2.3