|
|
1.1 root 1: .\" Copyright (c) 1983 Regents of the University of California.
2: .\" All rights reserved. The Berkeley software License Agreement
3: .\" specifies the terms and conditions for redistribution.
4: .\"
5: .\" @(#)wait.3f 6.1 (Berkeley) 5/15/85
6: .\"
7: .TH WAIT 3F "May 15, 1985"
8: .UC 5
9: .SH NAME
10: wait \- wait for a process to terminate
11: .SH SYNOPSIS
12: .B integer function wait (status)
13: .br
14: .B integer status
15: .SH DESCRIPTION
16: .I Wait
17: causes its caller to be suspended until a signal is received or one of
18: its child processes terminates.
19: If any child has terminated since the last
20: .I wait,
21: return is immediate; if there are no children, return is immediate
22: with an error code.
23: .PP
24: If the returned value is positive, it is the process ID of the child and
25: .I status
26: is its termination status (see
27: .IR wait (2)).
28: If the returned value is negative, it is the negation of a system error code.
29: .SH FILES
30: .ie \nM /usr/ucb/lib/libU77.a
31: .el /usr/lib/libU77.a
32: .SH "SEE ALSO"
33: wait(2), signal(3F), kill(3F), perror(3F)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.