From b8e4cdda35aba72d35c22efcd5eb862d1c0358fe Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Wed, 24 Oct 2018 18:42:13 +0000 Subject: [PATCH] Clarify slightly the interaction between wait*() and pdfork(). There are multiple ways to wait for any child process to return a status (e.g., waitpid(-1, ...), waitid(P_ALL, ...)), so don't be so specific. MFC after: 1 week Sponsored by: The FreeBSD Foundation --- lib/libc/sys/wait.2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libc/sys/wait.2 b/lib/libc/sys/wait.2 index d38da3fe375d..97f8bb45cb76 100644 --- a/lib/libc/sys/wait.2 +++ b/lib/libc/sys/wait.2 @@ -28,7 +28,7 @@ .\" @(#)wait.2 8.2 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd December 1, 2017 +.Dd October 24, 2018 .Dt WAIT 2 .Os .Sh NAME @@ -597,11 +597,11 @@ fields of .Fa infop must be checked against zero to determine if a process reported status. .Pp +The .Fn wait -called with -1 to wait for any child process will ignore a child that is -referenced by a process descriptor (see -.Xr pdfork 2 ) . -Specific processes can still be waited on by specifying the process ID. +family of functions will not return a child process created with +.Xr pdfork 2 +unless specifically directed to do so by specifying its process ID. .Sh ERRORS The .Fn wait