diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-01-12 15:25:38 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-01-12 15:25:38 +0000 |
commit | 859a7fe9021cc9862b5612f79ac6d30daccbba7a (patch) | |
tree | 3a00cc760ebb7866cb870aaab2b90c71ce30cf55 /lib/libc/sys | |
parent | 4d3833f5b8ffd7244b58e51867ebf26a8e1146ed (diff) |
document WAIT_ANY and WAIT_MYPGRP;
help and ok miod@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/wait.2 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/libc/sys/wait.2 b/lib/libc/sys/wait.2 index a305730ca34..02e01de7722 100644 --- a/lib/libc/sys/wait.2 +++ b/lib/libc/sys/wait.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wait.2,v 1.17 2003/08/03 23:30:55 millert Exp $ +.\" $OpenBSD: wait.2,v 1.18 2004/01/12 15:25:37 jmc Exp $ .\" $NetBSD: wait.2,v 1.6 1995/02/27 12:39:37 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 @@ -78,12 +78,22 @@ The other wait functions are implemented using The .Fa wpid parameter specifies the set of child processes for which to wait. +The following symbolic constants are currently defined in +.Aq Pa sys/wait.h : +.Bd -unfilled -offset indent +#define WAIT_ANY (-1) /* any process */ +#define WAIT_MYPGRP 0 /* any process in my process group */ +.Ed +.Pp If .Fa wpid -is \-1, the call waits for any child process. +is set to +.Dv WAIT_ANY , +the call waits for any child process. If .Fa wpid -is 0, +is set to +.Dv WAIT_MYPGRP , the call waits for any child process in the process group of the caller. If .Fa wpid |