]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/clone.2
bind.2, chmod.2, chown.2, chroot.2, clock_getres.2, clone.2, connect.2, dup.2, falloc...
[thirdparty/man-pages.git] / man2 / clone.2
index 12f8d26aa88484648f3e67a9cc5309f90e22071b..323e61cec597e9fbcffbbf6a886c5b2cbdf4ef87 100644 (file)
@@ -39,7 +39,7 @@
 .\" 2008-11-19, mtk, document CLONE_NEWIPC
 .\" 2008-11-19, Jens Axboe, mtk, document CLONE_IO
 .\"
-.TH CLONE 2 2016-07-17 "Linux" "Linux Programmer's Manual"
+.TH CLONE 2 2016-12-12 "Linux" "Linux Programmer's Manual"
 .SH NAME
 clone, __clone2 \- create a child process
 .SH SYNOPSIS
@@ -166,6 +166,9 @@ This is used by threading libraries.
 Store the child thread ID at the location
 .I ctid
 in the child's memory.
+The store operation completes before
+.BR clone ()
+returns control to user space.
 .TP
 .BR CLONE_FILES " (since Linux 2.0)"
 If
@@ -519,6 +522,9 @@ in the parent's memory.
 (In Linux 2.5.32-2.5.48 there was a flag
 .B CLONE_SETTID
 that did this.)
+The store operation completes before
+.BR clone ()
+returns control to user space.
 .TP
 .BR CLONE_PID " (obsolete)"
 If
@@ -1098,13 +1104,13 @@ and the call would cause the limit on the number of
 nested user namespaces to be exceeded.
 See
 .BR user_namespaces (7).
-.SH VERSIONS
-There is no entry for
-.BR clone ()
-in libc5.
-glibc2 provides
-.BR clone ()
-as described in this manual page.
+.\" .SH VERSIONS
+.\" There is no entry for
+.\" .BR clone ()
+.\" in libc5.
+.\" glibc2 provides
+.\" .BR clone ()
+.\" as described in this manual page.
 .SH CONFORMING TO
 .BR clone ()
 is Linux-specific and should not be used in programs
@@ -1116,7 +1122,7 @@ 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.
 
-In the kernel 2.4.x series,
+In the Linux 2.4.x series,
 .B CLONE_THREAD
 generally does not make the parent of the new thread the same
 as the parent of the calling process.
@@ -1124,7 +1130,7 @@ However, for kernel versions 2.4.7 to 2.4.18 the
 .B CLONE_THREAD
 flag implied the
 .B CLONE_PARENT
-flag (as in kernel 2.6).
+flag (as in Linux 2.6.0 and later).
 
 For a while there was
 .B CLONE_DETACHED