WAIT(3F)WAIT(3F)NAMEwait - wait for a process to terminate
SYNOPSIS
integer*4 function wait (status)
integer*4 status
DESCRIPTIONwait causes its caller to be suspended until a signal is received, or
until one of its child processes terminates. If any child has termi‐
nated since the last wait, return is immediate; if there are no chil‐
dren, return is immediate with an error code.
If the returned value is positive, it is the process ID of the child,
and status is its termination status (see wait(2)). If the returned
value is negative, it is the negation of a system error code.
FILES
libfui.a
SEE ALSOwait(2), signal(3F), kill(3F), perror(3F)
07 July 1995 WAIT(3F)