1feee8
commit 8fabe0e632bd441c760f878d1022c378f04f8497
1feee8
Author: Florian Weimer <fweimer@redhat.com>
1feee8
Date:   Thu Aug 4 06:17:50 2022 +0200
1feee8
1feee8
    Linux: Remove exit system call from _exit
1feee8
    
1feee8
    exit only terminates the current thread, not the whole process, so it
1feee8
    is the wrong fallback system call in this context.  All supported
1feee8
    Linux versions implement the exit_group system call anyway.
1feee8
1feee8
diff --git a/sysdeps/unix/sysv/linux/_exit.c b/sysdeps/unix/sysv/linux/_exit.c
1feee8
index 2f0ec35459f25314..cd1270ac9b2b5b2b 100644
1feee8
--- a/sysdeps/unix/sysv/linux/_exit.c
1feee8
+++ b/sysdeps/unix/sysv/linux/_exit.c
1feee8
@@ -28,7 +28,6 @@ _exit (int status)
1feee8
   while (1)
1feee8
     {
1feee8
       INLINE_SYSCALL (exit_group, 1, status);
1feee8
-      INLINE_SYSCALL (exit, 1, status);
1feee8
 
1feee8
 #ifdef ABORT_INSTRUCTION
1feee8
       ABORT_INSTRUCTION;