berk_sigpause(2) DG/UX R4.11MU05 berk_sigpause(2)
NAME
berksigpause - set blocked signals and suspend process until a
signal is caught
SYNOPSIS
#include <sys/signal.h>
int berksigpause (signalmask)
int signalmask;
where:
signalmask Set of signals to be blocked while waiting
DESCRIPTION
Berksigpause assigns the set of signals specified in signalmask to
the set of signals blocked from presentation and then suspends the
calling process until it is presented with a signal that is set to be
caught. Changing the signal mask may cause previously pended signals
to be presented immediately.
Neither the presentation of signals that are ignored, nor the
presentation of signals that cause the termination of the calling
process, nor the existence of pended signals cause berksigpause to
return.
When a signal is caught by the calling process and control is
returned from the signal handler, berksigpause returns. On return,
the previous set of signals blocked from presentation is restored.
Signal "s" is represented by the value "SIGBIT(s)" in signalmask.
It is not possible to block SIGKILL or SIGSTOP. It may or may not be
possible to block signals that are not defined by the system. An
attempt to block these signals will not produce an error.
ACCESS CONTROL
None.
RETURN VALUE
-1 An error occurred. errno is set to indicate the error.
DIAGNOSTICS
Errno may be set to one of the following error codes:
EINTR A signal interrupted the berksigpause operation.
SEE ALSO
sigblock(2), sigpause(2), sigvec(2).
Licensed material--property of copyright holder(s)