.TH WAIT 3F "13 June 1983"
wait \- wait for a process to terminate
.B integer function wait (status)
causes its caller to be suspended until a signal is received or one of
its child processes terminates.
If any child has terminated since the last
return is immediate; if there are no children, return is immediate
If the returned value is positive, it is the process ID of the child and
is its termination status (see
If the returned value is negative, it is the negation of a system error code.
.ie \nM /usr/ucb/lib/libU77.a
wait(2), signal(3F), kill(3F), perror(3F)