[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    pause(2) manual page Table of Contents

Name

pause - suspend process until signal

Synopsis

#include <unistd.h>

int pause(void);

MT-Level

Async-Signal-Safe

Description

pause() suspends the calling process until it receives a signal. The signal must be one that is not currently set to be ignored by the calling process.

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

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

See Also

alarm(2) , kill(2) , wait(2) , signal(3C)


Table of Contents