mirror of https://github.com/mkerrisk/man-pages
pid_namespaces.7: Mention PR_SET_CHILD_SUBREAPER in discussion of reparenting to init
Reported-by: Vasily Kulikov <segoon@openwall.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
fa88d1a483
commit
2a4b78e7e2
|
@ -60,9 +60,14 @@ using the
|
|||
.BR CLONE_NEWPID
|
||||
flag) has the PID 1, and is the "init" process for the namespace (see
|
||||
.BR init (1)).
|
||||
Children that are orphaned within the namespace will be reparented
|
||||
A child process that is orphaned within the namespace will be reparented
|
||||
to this process rather than
|
||||
.BR init (1).
|
||||
.BR init (1)
|
||||
(unless one of the ancestors of the child
|
||||
in the same PID namespace employed the
|
||||
.BR prctl (2)
|
||||
.B PR_GET_CHILD_SUBREAPER
|
||||
command to mark itself as the reaper of orphaned descendant processes).
|
||||
|
||||
If the "init" process of a PID namespace terminates,
|
||||
the kernel terminates all of the processes in the namespace via a
|
||||
|
|
Loading…
Reference in New Issue