pid_namespaces.7: Explain use for readlink() from /proc/self

Reported-by: Rob Landley <rob@landley.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-03-01 10:51:13 +01:00
parent 47832b6dfc
commit 5597d425e9
1 changed files with 2 additions and 0 deletions

View File

@ -270,6 +270,8 @@ on the path
.I /proc/self
yields the process ID of the caller in the PID namespace of the procfs mount
(i.e., the PID namespace of the process that mounted the procfs).
This can be useful for introspection purposes,
when a process wants to discover its PID in other namespaces.
.\"
.\" ============================================================
.\"