From 97a1e5b2728bb73786ba9eb875b063c52d3e4efb Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 23 May 2017 21:34:39 +0200 Subject: [PATCH] namespaces.7: Some tweaks to Kirill Tkhai's text on pid_for_children Signed-off-by: Michael Kerrisk --- man7/namespaces.7 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/man7/namespaces.7 b/man7/namespaces.7 index 67ea0ced0..cbdbdfb90 100644 --- a/man7/namespaces.7 +++ b/man7/namespaces.7 @@ -187,14 +187,22 @@ This file is a handle for the network namespace of the process. .TP .IR /proc/[pid]/ns/pid " (since Linux 3.8)" .\" commit 57e8391d327609cbf12d843259c968b9e5c1838f -This file is a handle for the PID namespace of the process. It's -permanent during the whole process life. +This file is a handle for the PID namespace of the process. +This handle is permanent for the lifetime of the process +(i.e., a process's PID namespace membership never changes). .TP .IR /proc/[pid]/ns/pid_for_children " (since Linux 4.12)" .\" commit eaa0d190bfe1ed891b814a52712dcd852554cb08 -This file is a handle for the PID namespace of a next born child -of the process. It's changed after unshare(2) and via setns(2), -so the file may differ from /proc/[pid]/ns/pid. +This file is a handle for the PID namespace of +child processes created by this process. +This can change as a consequence of calls to +.BR unshare (2) +and +.BR setns (2) +(see +.BR pid_namespaces (7)), +so the file may differ from +.IR /proc/[pid]/ns/pid . .TP .IR /proc/[pid]/ns/user " (since Linux 3.8)" .\" commit cde1975bc242f3e1072bde623ef378e547b73f91