_exit(2) and _Exit(2)
Florian Weimer
fweimer@redhat.com
Sat Jun 6 11:55:52 GMT 2026
* Alejandro Colomar:
>> > 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?
Observable behavior was about the same, I think, because thread
libraries had to override _exit before exit_group was introduced.
Thanks,
Florian
More information about the Libc-alpha
mailing list