HP 3000 Manuals

pause [ MPE/iX Developer's Kit Reference Manual Volume I ] MPE/iX 5.0 Documentation


MPE/iX Developer's Kit Reference Manual Volume I

pause 

Suspends execution of the calling process.

Syntax 

     #include <unistd.h>
     int pause (void);

Parameters 

None.

Return Values 

No return  Success.

-1         An error occurred, and errno is set to indicate the error
           condition.

Description 

The pause() function suspends execution of the calling process until the
delivery of a signal that either executes a user-supplied signal handling
function (signal handler) or causes the process to terminate.  If the
signal executes a signal handler, pause() returns a -1 after the signal
handler returns.  If a signal terminates the paused process, pause() does
not return to the caller.

Implementation Considerations 

None.

Errors 

If an error occurs, errno is set to the following value:

EINTR             CAUSE           A signal was caught by the calling process, and
                                  control was returned from the signal handler.
                  ACTION          No action required.

See Also 

alarm(), kill(), sigaction(), wait(), POSIX.1 (Section 3.4.2).



MPE/iX 5.0 Documentation