mirror of https://github.com/mkerrisk/man-pages
pid_namespaces.7: Parent process relationships mirror parent PID namespace relationships
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
7a9ab60197
commit
6e377abf9c
|
@ -182,9 +182,14 @@ because doing so would change the caller's idea of its own PID
|
|||
(as reported by
|
||||
.BR getpid ()),
|
||||
which would break many applications and libraries.
|
||||
|
||||
To put things another way:
|
||||
a process's PID namespace membership is determined when the process is created
|
||||
and cannot be changed thereafter.
|
||||
Among other things, this means that the parental relationship
|
||||
between processes mirrors the parental between PID namespaces:
|
||||
the parent of a process is either in the same namespace
|
||||
or resides in the immediate parent PID namespace.
|
||||
|
||||
Every thread in a process must be in the same PID namespace.
|
||||
For this reason, the two following call sequences will fail:
|
||||
|
|
Loading…
Reference in New Issue