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