about summary refs log tree commit diff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-08-04 06:17:50 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-08-04 06:17:50 +0200
commit8fabe0e632bd441c760f878d1022c378f04f8497 (patch)
treec65a2661c2f12ef328195bbbde57eab6ca1a6d48 /sysdeps/unix/sysv
parent3e838436370cd97ffaacec5cb663aa03f97a16db (diff)
downloadglibc-8fabe0e632bd441c760f878d1022c378f04f8497.tar.gz
glibc-8fabe0e632bd441c760f878d1022c378f04f8497.tar.xz
glibc-8fabe0e632bd441c760f878d1022c378f04f8497.zip
Linux: Remove exit system call from _exit
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.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/_exit.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/_exit.c b/sysdeps/unix/sysv/linux/_exit.c
index 7ad3e0aae4..f916d97ae2 100644
--- a/sysdeps/unix/sysv/linux/_exit.c
+++ b/sysdeps/unix/sysv/linux/_exit.c
@@ -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;