Kaynağa Gözat

add dummy loop to kill gcc warning, probably _exit should get attribute_noreturn

Peter S. Mazinger 18 yıl önce
ebeveyn
işleme
d85c61c5e7
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      libc/sysdeps/linux/common/_exit.c

+ 3 - 1
libc/sysdeps/linux/common/_exit.c

@@ -34,6 +34,8 @@ static inline _syscall1(void, __syscall_exit, int, status);
 
 void _exit(int status)
 {
-	INLINE_SYSCALL(exit, 1, status);
+	/* The loop is added only to keep gcc happy. */
+	while(1)
+		INLINE_SYSCALL(exit, 1, status);
 }