Deleted Added
full compact
wait.2 (108028) wait.2 (108087)
1.\" Copyright (c) 1980, 1991, 1993, 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)wait.2 8.2 (Berkeley) 4/19/94
1.\" Copyright (c) 1980, 1991, 1993, 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)wait.2 8.2 (Berkeley) 4/19/94
33.\" $FreeBSD: head/lib/libc/sys/wait.2 108028 2002-12-18 09:22:32Z ru $
33.\" $FreeBSD: head/lib/libc/sys/wait.2 108087 2002-12-19 09:40:28Z ru $
34.\"
35.Dd April 19, 1994
36.Dt WAIT 2
37.Os
38.Sh NAME
39.Nm wait ,
40.Nm waitpid ,
41.Nm wait4 ,

--- 35 unchanged lines hidden (view full) ---

77that need to wait for certain child processes,
78that need resource utilization statistics accumulated by child processes,
79or that require options.
80The other wait functions are implemented using
81.Fn wait4 .
82.Pp
83The
84.Fa wpid
34.\"
35.Dd April 19, 1994
36.Dt WAIT 2
37.Os
38.Sh NAME
39.Nm wait ,
40.Nm waitpid ,
41.Nm wait4 ,

--- 35 unchanged lines hidden (view full) ---

77that need to wait for certain child processes,
78that need resource utilization statistics accumulated by child processes,
79or that require options.
80The other wait functions are implemented using
81.Fn wait4 .
82.Pp
83The
84.Fa wpid
85parameter specifies the set of child processes for which to wait.
85argument specifies the set of child processes for which to wait.
86If
87.Fa wpid
88is -1, the call waits for any child process.
89If
90.Fa wpid
91is 0,
92the call waits for any child process in the process group of the caller.
93If
94.Fa wpid
95is greater than zero, the call waits for the process with process id
96.Fa wpid .
97If
98.Fa wpid
99is less than -1, the call waits for any process whose process group id
100equals the absolute value of
101.Fa wpid .
102.Pp
103The
104.Fa status
86If
87.Fa wpid
88is -1, the call waits for any child process.
89If
90.Fa wpid
91is 0,
92the call waits for any child process in the process group of the caller.
93If
94.Fa wpid
95is greater than zero, the call waits for the process with process id
96.Fa wpid .
97If
98.Fa wpid
99is less than -1, the call waits for any process whose process group id
100equals the absolute value of
101.Fa wpid .
102.Pp
103The
104.Fa status
105parameter is defined below. The
105argument is defined below. The
106.Fa options
106.Fa options
107parameter contains the bitwise OR of any of the following options.
107argument contains the bitwise OR of any of the following options.
108The
109.Dv WCONTINUED
110option indicates that children of the current process that
111have continued from a job control stop, by receiving a
112.Dv SIGCONT
113signal, should also have their status reported.
114The
115.Dv WNOHANG

--- 158 unchanged lines hidden (view full) ---

274.It Bq Er ECHILD
275The calling process has no existing unwaited-for
276child processes.
277.It Bq Er EFAULT
278The
279.Fa status
280or
281.Fa rusage
108The
109.Dv WCONTINUED
110option indicates that children of the current process that
111have continued from a job control stop, by receiving a
112.Dv SIGCONT
113signal, should also have their status reported.
114The
115.Dv WNOHANG

--- 158 unchanged lines hidden (view full) ---

274.It Bq Er ECHILD
275The calling process has no existing unwaited-for
276child processes.
277.It Bq Er EFAULT
278The
279.Fa status
280or
281.Fa rusage
282arguments point to an illegal address.
282argument points to an illegal address.
283(May not be detected before exit of a child process.)
284.It Bq Er EINTR
285The call was interrupted by a caught signal,
286or the signal did not have the
287.Dv SA_RESTART
288flag set.
289.El
290.Sh STANDARDS

--- 25 unchanged lines hidden ---
283(May not be detected before exit of a child process.)
284.It Bq Er EINTR
285The call was interrupted by a caught signal,
286or the signal did not have the
287.Dv SA_RESTART
288flag set.
289.El
290.Sh STANDARDS

--- 25 unchanged lines hidden ---