(BSD System Compatibility)
sigpause(3bsd)
sigpause --
(BSD) automatically release blocked signals and wait for interrupt
Synopsis
/usr/ucb/cc [flag . . . ] file . . .
sigpause(int sigmask);
Description
sigpause
assigns
sigmask
to the set of masked signals
and then waits for a signal to arrive;
on return the set of masked signals is restored.
sigmask
is usually 0 to indicate that no
signals are now to be blocked.
sigpause
always terminates by being interrupted, returning
EINTR.
In normal usage, a signal is blocked using
sigblock(3bsd),
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
sigpause
with the mask returned by
sigblock.
References
sigaction(2),
sigblock(3bsd),
signal(2),
signal(3bsd),
sigvec(3bsd)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004