From 743cf396562e269566f9a7332f22497d8190ce97 Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 18 Jul 2001 19:12:21 +0000 Subject: [PATCH] Document WALTSIG (and __WCLONE) and WALLSIG (__WALL). Restructure the options documentation to make it easier to read. --- lib/libc/sys/wait.2 | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/lib/libc/sys/wait.2 b/lib/libc/sys/wait.2 index 5f28879832e2..d2ae5ea684f3 100644 --- a/lib/libc/sys/wait.2 +++ b/lib/libc/sys/wait.2 @@ -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