wait.2: Orphaned children may be adopted by a "subreaper", rather by than PD 1

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-03-15 12:46:35 +01:00
parent 99ed723adc
commit cfbe21a4d1
1 changed files with 6 additions and 1 deletions

View File

@ -434,7 +434,12 @@ this table fills, it will not be possible to create further processes.
If a parent process terminates, then its "zombie" children (if any)
are adopted by
.BR init (1),
which automatically performs a wait to remove the zombies.
(or by the nearest "subreaper" process as defined through the use of the
.BR prctl (2)
.B PR_SET_CHILD_SUBREAPER
operation);
.BR init (1)
automatically performs a wait to remove the zombies.
POSIX.1-2001 specifies that if the disposition of
.B SIGCHLD