summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-08-26 12:37:16 +0000
committerkib <kib@FreeBSD.org>2008-08-26 12:37:16 +0000
commit05dac85e4b0f1f608662dcda515b72680edf8348 (patch)
treee56e2d6943e7f9becd5ad8952f710e7110d719e6 /lib
parent2d990eae0580f74b2aee49da3c6434c6224e084c (diff)
downloadFreeBSD-src-05dac85e4b0f1f608662dcda515b72680edf8348.zip
FreeBSD-src-05dac85e4b0f1f608662dcda515b72680edf8348.tar.gz
Implement WNOWAIT flag for wait4(2). It specifies that process whose status
is returned shall be kept in the waitable state. Add WSTOPPED as an alias for WUNTRACED. Submitted by: Jukka Ukkonen <jau at iki fi> PR: standards/116221 MFC after: 2 weeks
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/wait.212
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/wait.2 b/lib/libc/sys/wait.2
index f4dfe9d..c492cd6 100644
--- a/lib/libc/sys/wait.2
+++ b/lib/libc/sys/wait.2
@@ -99,6 +99,7 @@ equals the absolute value of
The
.Fa status
argument is defined below.
+.Pp
The
.Fa options
argument contains the bitwise OR of any of the following options.
@@ -121,8 +122,15 @@ due to a
.Dv SIGTTIN , SIGTTOU , SIGTSTP ,
or
.Dv SIGSTOP
-signal also have
-their status reported.
+signal also have their status reported.
+The
+.Dv WSTOPPED
+option is an alias for
+.Dv WUNTRACED .
+The
+.Dv WNOWAIT
+option keeps the process whose status is returned in a waitable state.
+The process may be waited for again after this call completes.
.Pp
If
.Fa rusage
OpenPOWER on IntegriCloud