HELPLIB.HLB  —  CRTL  pause
    Suspends the calling process until delivery of a signal whose
    action is either to execute a signal-catching function or to
    terminate the process.

    Format

      #include  <unistd.h>

      int pause  (void);

1  –  Description

    The pause function suspends the calling process until delivery
    of a signal whose action is either to execute a signal-catching
    function or to terminate the process.

    If the action is to terminate the process, pause does not return.

    If the action is to execute a signal-catching function, pause
    returns after the signal-catching function returns.

2  –  Return Value

                       Since the pause function suspends process
                       execution indefinitely unless interrupted by
                       a signal, there is no successful completion
                       return value.
    -1                 In cases where pause returns, the return value
                       is -1, and errno is set to EINTR.
Close Help