sigsetmasksigblock
- manipulate current signal mask
LIBRARY
Lb libc
SYNOPSIS
#include <signal.h> int
sigsetmask (int mask); int
sigblock (int mask); int
sigmask (int signum);
DESCRIPTION
Bf -symbolic
This interface is made obsolete by:
Ef sigprocmask(2).
The
sigsetmask ();
function
sets the current signal mask to the specified
Fa mask .
Signals are blocked from delivery if the corresponding bit in
Fa mask
is a 1.
The
sigblock ();
function
adds the signals in the specified
Fa mask
to the current signal mask,
rather than overwriting it as
sigsetmask ();
does.
The macro
sigmask ();
is provided to construct the mask for a given
Fa signum .
The system
quietly disallows
SIGKILL
or
SIGSTOP
to be blocked.
RETURN VALUES
The
sigblock ();
and
sigsetmask ();
functions
return the previous set of masked signals.