clone.2: clone() does not execute fork handlers

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-01-20 10:04:34 +13:00
parent 26cfa7d300
commit c471c3636d
1 changed files with 6 additions and 0 deletions

View File

@ -1122,6 +1122,12 @@ system call can be used to test whether two processes share various
resources such as a file descriptor table,
System V semaphore undo operations, or a virtual address space.
Handlers registered using
.BR pthread_atfork (3)
are not executed during a call to
.BR clone ().
In the Linux 2.4.x series,
.B CLONE_THREAD
generally does not make the parent of the new thread the same