pause(2)


pause -- suspend process until signal

Synopsis

   #include <unistd.h>
   

int pause(void);

Description

pause suspends the calling process until it receives a signal of any type. The signal must be one that is not currently set to be ignored.

If the signal causes termination of the process, pause does not return.

Return values

If the signal is caught by the calling process and control is returned from the signal-catching function [see signal(2)], the calling process resumes execution from the point of suspension with a return value of -1 from pause and errno set to EINTR.

Errors

In the following conditions, the calling process resumes from the point of suspension with errno set to:

EINTR
A signal was caught by the calling process.

References

alarm(2), kill(2), signal(2), sigpause(3bsd), wait(2)

Notices

Considerations for threads programming

While one thread is blocked, siblings might still be executing. See signal(5) for further details of signal delivery. See sigwait(2) for related functionality.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004