Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

wait (3f)


Syntax

  integer*4 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.

See Also

  wait(2), kill(3f), perror(3f), signal(3f)