aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-10-13 15:48:37 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-10-13 15:48:37 +0200
commitb5da2f9178b9406bf03497aa645a15804a45a547 (patch)
tree9b83d3913fd33a50492ef9f61c0d9cef23b1f7cf
parent4ba5392d3b80005b95b987e6564ea199a2b604db (diff)
downloadman-pages-b5da2f9178b9406bf03497aa645a15804a45a547.tar.gz
clone.2: The CLONE_*_SETTID operations store TID before return to user space
CLONE_PARENT_SETTID and CLONE_CHILD_SETTID store the new TID before clone() returns to user space Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/clone.26
1 files changed, 6 insertions, 0 deletions
diff --git a/man2/clone.2 b/man2/clone.2
index 12f8d26aa8..6d2625e7a7 100644
--- a/man2/clone.2
+++ b/man2/clone.2
@@ -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