Noted interactions with fork handlers in multithreaded programs.

This commit is contained in:
Michael Kerrisk 2006-09-17 06:21:29 +00:00
parent 36e212c6ce
commit cdcaddfc07
1 changed files with 11 additions and 0 deletions

View File

@ -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),