_exit(2) and _Exit(2)

Alejandro Colomar alx@kernel.org
Sat Jun 6 11:04:00 GMT 2026


Hi Florian,

On 2026-06-06T12:27:54+0200, Florian Weimer wrote:
> >> No, the change to exit_group mentioned in the manual page happened in
> >> 2002.  This commit (from the historic repository) replaced the generic
> >> assembler implementation:
> >> 
> >> commit f3ecc0add8382dc9294bbbe4f94d7422ebc3ba7e (HEAD)
> >> Author: Ulrich Drepper <drepper@redhat.com>
> >> Date:   Sun Sep 15 02:27:40 2002 +0000
> >> 
> >>     _exit implementation for Linux.
> >
> > Ahh, thanks!  Where's the historic repository hosted?
> 
> It's here: https://repo.or.cz/glibc/history.git

Thanks!

> > Also, did that change affect _Exit() too?  (I assume it did.)
> 
> No, this was fixed in a later commit:
> 
> commit d2ac5f37690b4e77022f43250b73333e6103c0dd
> Author: Roland McGrath <roland@gnu.org>
> Date:   Mon Sep 16 04:52:39 2002 +0000
> 
>     2002-09-16  Andreas Jaeger  <aj@suse.de>
>     
>             * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
>             to _Exit.
>             * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.

Okay, this seems to also be from glibc-2.3.  So the remaining doubt
would be, before glibc-2.3, did _Exit() and _exit() have the same
behavior, or were they different from each other?


Cheers,
Alex

> 
> Thanks,
> Florian
> 

-- 
<https://www.alejandro-colomar.es>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260606/ed103c4a/attachment.sig>


More information about the Libc-alpha mailing list