mirror of https://github.com/mkerrisk/man-pages
namespaces.7: Note an idiosyncracy of /proc/[pid]/ns/pid_for_children
/proc/[pid]/ns/pid_for_children has a value only after first child is created in PID namespace. Verified by experiment. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
0813749503
commit
1a7e08e367
|
@ -203,6 +203,11 @@ and
|
|||
.BR pid_namespaces (7)),
|
||||
so the file may differ from
|
||||
.IR /proc/[pid]/ns/pid .
|
||||
The symbolic link gains a value only after the first child process
|
||||
is created in the namespace.
|
||||
(Beforehand,
|
||||
.BR readlink (2)
|
||||
of the symbolic link will return an empty buffer.)
|
||||
.TP
|
||||
.IR /proc/[pid]/ns/user " (since Linux 3.8)"
|
||||
.\" commit cde1975bc242f3e1072bde623ef378e547b73f91
|
||||
|
|
Loading…
Reference in New Issue