aboutsummaryrefslogtreecommitdiffstats
path: root/man7/namespaces.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-01-16 10:24:52 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-09-13 20:15:58 -0700
commit3c7103af435cb4980831c8bc2f30b33c9e8ed824 (patch)
tree97552ccabf92883f0f0549b75c9ff116edc193e2 /man7/namespaces.7
parent84c35715bad7e854848c1679bbd94d6bee62e4a5 (diff)
downloadman-pages-3c7103af435cb4980831c8bc2f30b33c9e8ed824.tar.gz
namespaces.7: Remove text on "equivalence" between clone() and fork()+unshare()
The text probably doesn't help the readers understanding much, and it's not quite accurate in the case of PID namespaces. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/namespaces.7')
-rw-r--r--man7/namespaces.712
1 files changed, 1 insertions, 11 deletions
diff --git a/man7/namespaces.7 b/man7/namespaces.7
index 48d5fc87bb..5883d1fa57 100644
--- a/man7/namespaces.7
+++ b/man7/namespaces.7
@@ -82,17 +82,7 @@ and the calling process is made a member of those namespaces.
(This system call also implements a number of features
unrelated to namespaces.)
-Leaving aside the other effects of the
-.BR clone (2)
-system call, the following call:
-
- clone(..., CLONE_NEWXXX, ...);
-
-is equivalent in namespace terms to:
-
- if (fork() == 0) /* if child */
- unshare(CLONE_NEWXXX);
-
+.PP
Creation of new namespaces using
.BR clone (2)
and