mirror of https://github.com/mkerrisk/man-pages
_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:
parent
b96ad91c7c
commit
737a840daa
10
man2/_exit.2
10
man2/_exit.2
|
@ -118,9 +118,15 @@ wrapper function invoked the kernel system call of the same name.
|
||||||
Since glibc 2.3, the wrapper function invokes
|
Since glibc 2.3, the wrapper function invokes
|
||||||
.BR exit_group (2),
|
.BR exit_group (2),
|
||||||
in order to terminate all of the threads in a process.
|
in order to terminate all of the threads in a process.
|
||||||
(The raw
|
.PP
|
||||||
|
The raw
|
||||||
.BR _exit ()
|
.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
|
.SH SEE ALSO
|
||||||
.BR execve (2),
|
.BR execve (2),
|
||||||
.BR exit_group (2),
|
.BR exit_group (2),
|
||||||
|
|
Loading…
Reference in New Issue