DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

pause(S)


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(S)], 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(S), kill(S), signal(S), sigpause(S), wait(S)

Notices

Considerations for threads programming

While one thread is blocked, siblings might still be executing. See signal(M) for further details of signal delivery. See sigwait(S) for related functionality.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005