Add mdoc bits for the new waitpid() WCONTINUED option, and

WIFCONTINUED macro.
This commit is contained in:
Mike Barcroft 2002-06-01 18:38:58 +00:00
parent 6ee093fb8f
commit 9c85a5ca25

View file

@ -106,6 +106,12 @@ parameter is defined below. The
.Fa options
parameter contains the bitwise OR of any of the following options.
The
.Dv WCONTINUED
option indicates that children of the current process that
have continued from a job control stop, by receiving a
.Dv SIGCONT
signal, should also have their status reported.
The
.Dv WNOHANG
option
is used to indicate that the call should not block if
@ -155,6 +161,12 @@ value of -1.
The following macros may be used to test the manner of exit of the process.
One of the first three macros will evaluate to a non-zero (true) value:
.Bl -tag -width Ds
.It Fn WIFCONTINUED status
True if the process has not terminated, and
has continued after a job control stop.
This macro can be true only if the wait call specified the
.Dv WCONTINUED
option).
.It Fn WIFEXITED status
True if the process terminated normally by a call to
.Xr _exit 2