]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: Remove exit system call from _exit
authorFlorian Weimer <fweimer@redhat.com>
Thu, 4 Aug 2022 04:17:50 +0000 (06:17 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 4 Aug 2022 04:17:50 +0000 (06:17 +0200)
exit only terminates the current thread, not the whole process, so it
is the wrong fallback system call in this context.  All supported
Linux versions implement the exit_group system call anyway.

sysdeps/unix/sysv/linux/_exit.c

index 7ad3e0aae436f1f123675bda4de3e42ce44a9576..f916d97ae276ef5476c521fcf4770500c2abf21e 100644 (file)
@@ -28,7 +28,6 @@ _exit (int status)
   while (1)
     {
       INLINE_SYSCALL (exit_group, 1, status);
-      INLINE_SYSCALL (exit, 1, status);
 
 #ifdef ABORT_INSTRUCTION
       ABORT_INSTRUCTION;