aboutsummaryrefslogtreecommitdiffstats
path: root/man7/pid_namespaces.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-03-01 10:51:13 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-09-13 20:16:01 -0700
commit5597d425e94ac19c13e8954f9df6e8720e70de1b (patch)
treeeac5b7825a10caa2e21dc3521341a89e47069613 /man7/pid_namespaces.7
parent47832b6dfcbab9c86b564dc8275cd8032e60aab4 (diff)
downloadman-pages-5597d425e94ac19c13e8954f9df6e8720e70de1b.tar.gz
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>
Diffstat (limited to 'man7/pid_namespaces.7')
-rw-r--r--man7/pid_namespaces.72
1 files changed, 2 insertions, 0 deletions
diff --git a/man7/pid_namespaces.7 b/man7/pid_namespaces.7
index 5ef19a9265..294bad56b0 100644
--- a/man7/pid_namespaces.7
+++ b/man7/pid_namespaces.7
@@ -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.
.\"
.\" ============================================================
.\"