getpid.2: Note that getppid() returns 0 if parent is in different PID namespace

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-03-26 09:09:16 +01:00
parent 636355f9c2
commit da83e8a237
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ These functions are always successful.
.SH CONFORMING TO
POSIX.1-2001, 4.3BSD, SVr4.
.SH NOTES
If the caller's parent is in a different PID namespace (see
.BR pid_namespaces (7)),
.BR getppid ()
returns 0.
.\"
.SS C library/kernel ABI differences
Since glibc version 2.3.4,
the glibc wrapper function for