summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoroshogbo <oshogbo@FreeBSD.org>2016-06-01 19:49:38 +0000
committeroshogbo <oshogbo@FreeBSD.org>2016-06-01 19:49:38 +0000
commit911fc77d0fd6812bd44d3cd82ed4274bd0ab6115 (patch)
tree9fea5e351bfe5d7578879feb7ba546cb2ca18e64 /lib
parentca40d6fbcb0eb738d074fb7f45127d0722832b12 (diff)
downloadFreeBSD-src-911fc77d0fd6812bd44d3cd82ed4274bd0ab6115.zip
FreeBSD-src-911fc77d0fd6812bd44d3cd82ed4274bd0ab6115.tar.gz
Document behavior of wait introduced in the r286698.
Suggested by: glebius Reviewed by: wblock, bjk Differential Revision: https://reviews.freebsd.org/D6080
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/wait.210
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/sys/wait.2 b/lib/libc/sys/wait.2
index 687bc18..38b7bb7 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 3, 2013
+.Dd June 1, 2016
.Dt WAIT 2
.Os
.Sh NAME
@@ -596,6 +596,14 @@ and
fields of
.Fa infop
must be checked against zero to determine if a process reported status.
+.Pp
+.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
+or descriptor (see
+.Xr pdwait 4 ) .
.Sh ERRORS
The
.Fn wait
OpenPOWER on IntegriCloud