sigpause2
Atomically release blocked signals and wait for interrupt
Usage
#include <signal.h> int sigpause(int sigmask); /* BSD */ int sigpause(int sig); /* Unix95 */
Overview
Don't use this function. Use sigsuspend(2) instead.
The function sigpause() is designed to wait for some signal. It changes the process' signal mask (set of blocked signals), and then waits for a signal to arrive. Upon arrival of a signal, the original signal mask is restored.
Return value
If sigpause() returns, it was interrupted by a signal and the return value is -1 with errno set to EINTR.
Releases
9 releases since Debian 1.1 (Buzz); the text changed 5 times.