From 5597d425e94ac19c13e8954f9df6e8720e70de1b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 1 Mar 2013 10:51:13 +0100 Subject: [PATCH] pid_namespaces.7: Explain use for readlink() from /proc/self Reported-by: Rob Landley Signed-off-by: Michael Kerrisk --- man7/pid_namespaces.7 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/man7/pid_namespaces.7 b/man7/pid_namespaces.7 index 5ef19a926..294bad56b 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. .\" .\" ============================================================ .\"