HPlogo MPE/iX Developer's Kit Reference Manual Volume I: HP 3000 MPE/iX Computer Systems > Chapter 4  POSIX/iX Library Function Descriptions

pause

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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:

EINTRCAUSEA signal was caught by the calling process, and control was returned from the signal handler.
 ACTIONNo action required.

See Also

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

Feedback to webmaster