_exit(2) and _Exit(2)

Alejandro Colomar alx@kernel.org
Sat Jun 6 10:16:02 GMT 2026


Hi Florian,

On 2026-06-06T10:50:51+0200, Florian Weimer wrote:
> * Alejandro Colomar:
> 
> > Hi Florian!
> >
> > I'm revising the _exit(2) manual page (soon to be moved to _exit(3)).
> > While there, I noticed something a bit ambiguous/unclear.
> >
> > _Exit() is specified as equivalent to _exit().
> >
> > Then, in NOTES we have text saying that the behavior of _exit() changed
> > from calling SYS_exit to calling exit_group(2).  That text explicitly
> > talks about _exit(), and not generically about both functions; I suspect
> > that's just a wording mistake, and not an intentional one.
[...]
> 
> 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?
Also, did that change affect _Exit() too?  (I assume it did.)


Have a lovely day!
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/60e73c2b/attachment-0001.sig>


More information about the Libc-alpha mailing list