From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id D3C6E3857432; Thu, 4 Aug 2022 04:19:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3C6E3857432 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] Linux: Remove exit system call from _exit X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: 3e838436370cd97ffaacec5cb663aa03f97a16db X-Git-Newrev: 8fabe0e632bd441c760f878d1022c378f04f8497 Message-Id: <20220804041926.D3C6E3857432@sourceware.org> Date: Thu, 4 Aug 2022 04:19:26 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2022 04:19:26 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8fabe0e632bd441c760f878d1022c378f04f8497 commit 8fabe0e632bd441c760f878d1022c378f04f8497 Author: Florian Weimer Date: Thu Aug 4 06:17:50 2022 +0200 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. Diff: --- sysdeps/unix/sysv/linux/_exit.c | 1 - 1 file changed, 1 deletion(-) 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;