SIGBLOCK(2)
NAME
sigblock − block signals
SYNOPSIS
#include <signal.h>
long sigblock(mask);
long mask;
DESCRIPTION
Sigblock causes the signals specified in mask to be added to the set of signals currently being blocked from delivery. Signal i is blocked if the i-th bit in mask is 1, as specified with the macro sigmask(i).
It is not possible to block signals that cannot be ignored, as documented in signal(5); this restriction is silently imposed by the system.
Sigsetmask(2) can be used to set the mask absolutely.
RETURN VALUE
The previous set of masked signals is returned.
EXAMPLES
The following call to sigblock adds the SIGUSR1 and SIGUSR2 signals to the mask of signals currently blocked for the process:
long oldmask; oldmask = sigblock (sigmask (SIGUSR1) | sigmask (SIGUSR2));
WARNINGS
Sigblock should not be used in conjunction with the facilities described under sigset(2V).
AUTHOR
Sigblock was developed by the University of California, Berkeley.
SEE ALSO
kill(2), sigprocmask(2), sigsetmask(2), sigvector(2).
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989