.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)wait.3 6.1 (Berkeley) %G%
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)