mirror of https://github.com/mkerrisk/man-pages
Noted interactions with fork handlers in multithreaded programs.
This commit is contained in:
parent
36e212c6ce
commit
cdcaddfc07
11
man2/vfork.2
11
man2/vfork.2
|
@ -170,6 +170,17 @@ or
|
|||
.BR _exit ()
|
||||
and cannot rely on any specific behaviour w.r.t. shared memory.
|
||||
.\" In AIXv3.1 vfork is equivalent to fork.
|
||||
.SH "LINUX NOTES"
|
||||
Fork handlers established using
|
||||
.BR pthread_atfork (3)
|
||||
are not called when a multithreaded program employing
|
||||
the NPTL threading library calls
|
||||
.BR vfork ().
|
||||
Fork handlers are called in this case in a program using the
|
||||
LinuxThreads threading library.
|
||||
(See
|
||||
.BR pthreads (7)
|
||||
for a description of Linux threading libraries.)
|
||||
.SH "SEE ALSO"
|
||||
.BR clone (2),
|
||||
.BR execve (2),
|
||||
|
|
Loading…
Reference in New Issue