4.3BSD-UWisc/man/cat2/sigpause.2
SIGPAUSE(2) UNIX Programmer's Manual SIGPAUSE(2)
NAME
sigpause - atomically release blocked signals and wait for
interrupt
SYNOPSIS
sigpause(sigmask)
int sigmask;
DESCRIPTION
_S_i_g_p_a_u_s_e assigns _s_i_g_m_a_s_k to the set of masked signals and
then waits for a signal to arrive; on return the set of
masked signals is restored. _S_i_g_m_a_s_k is usually 0 to indi-
cate that no signals are now to be blocked. _S_i_g_p_a_u_s_e always
terminates by being interrupted, returning -1 with _e_r_r_n_o set
to EINTR.
In normal usage, a signal is blocked using _s_i_g_b_l_o_c_k(2), to
begin a critical section, variables modified on the
occurrence of the signal are examined to determine that
there is no work to be done, and the process pauses awaiting
work by using _s_i_g_p_a_u_s_e with the mask returned by _s_i_g_b_l_o_c_k.
SEE ALSO
sigblock(2), sigvec(2)
Printed 12/27/86 May 15, 1986 1