wait

wait(3f)                                                                wait(3f)



Name
       wait - waits for a process to terminate

Syntax
       integer wait, retval, status
       external wait
       retval = wait ( status )

Description
       The wait function causes its caller to be suspended until a signal is
       received or one of its child processes terminates.  If any child process
       has terminated since the last call to wait, the return is immediate; if
       there are no children, the return of an error code is immediate.

       If the return value is positive, it is the process ID of the child and
       status is its termination status (see wait(2) ). If the return value is
       negative, it is the negation of a system error code.

Files
       libU77.a

See Also
       wait(2), kill(3f), signal(3f)



                                                                        wait(3f)