_exit.2: Add a little more detail on the raw _exit() system cal

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-03-25 09:32:30 +01:00
parent b96ad91c7c
commit 737a840daa
1 changed files with 8 additions and 2 deletions

View File

@ -118,9 +118,15 @@ wrapper function invoked the kernel system call of the same name.
Since glibc 2.3, the wrapper function invokes
.BR exit_group (2),
in order to terminate all of the threads in a process.
(The raw
.PP
The raw
.BR _exit ()
system call terminates only the calling thread.)
system call terminates only the calling thread, and actions such as
reparenting child processes or sending
.B SIGCHLD
to the parent process are performed only if this is
the last thread in the thread group.
.\" _exit() is used by pthread_exit() to terminate the calling thread
.SH SEE ALSO
.BR execve (2),
.BR exit_group (2),