Document WALTSIG (and __WCLONE) and WALLSIG (__WALL). Restructure the

options documentation to make it easier to read.
This commit is contained in:
thorpej 2001-07-18 19:12:21 +00:00
parent e21d5026ef
commit 743cf39656

View File

@ -1,4 +1,4 @@
.\" $NetBSD: wait.2,v 1.12 1999/12/02 21:42:40 kleink Exp $
.\" $NetBSD: wait.2,v 1.13 2001/07/18 19:12:21 thorpej Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@ -105,22 +105,43 @@ The
.Fa status
parameter is defined below. The
.Fa options
parameter contains the bitwise OR of any of the following options.
The
.Dv WNOHANG
option
is used to indicate that the call should not block if
parameter contains the bitwise OR of any of the following options:
.Bl -tag -width WUNTRACED
.It Dv WNOHANG
This option is used to indicate that the call should not block if
there are no processes that wish to report status.
If the
.Dv WUNTRACED
option is set,
children of the current process that are stopped
.It Dv WUNTRACED
If this option is set, children of the current process that are stopped
due to a
.Dv SIGTTIN , SIGTTOU , SIGTSTP ,
or
.Dv SIGSTOP
signal also have
their status reported.
signal also have their status reported.
.It Dv WALTSIG
If this option is specified, the call will wait only for processes that
are configured to post a signal other than
.Dv SIGCHLD
when they exit. If
.Dv WALTSIG
is not specified, the call will wait only for processes that
are configured to post
.Dv SIGCHLD .
.It Dv __WCLONE
This is an alias for
.Dv WALTSIG .
It is provided for compatibility with the Linux
.Xr clone 2
API.
.It Dv WALLSIG
If this option is specified, the call will wait for all children regardless
of what exit signal they post.
.It Dv __WALL
This is an alias for
.Dv WALLSIG .
It is provided for compatibility with the Linux
.Xr clone 2
API .
.El
.Pp
If
.Fa rusage