#include <signal.h> int sigprocmask( int how, const sigset_t *set, sigset_t *oset );
This function is used to alter the set of currently blocked signals
on a process wide basis. A blocked signal will not be received by the
process. The behavior of this function is dependent on the value of
how
which may be one of the following:
SIG_BLOCK
set
and
those signals currently blocked.
SIG_UNBLOCK
set
are removed from the currently
blocked set.
SIG_SETMASK
set
.
If oset
is not NULL
, then the set of blocked signals
prior to this call is returned in oset
.
It is not an error to unblock a signal which is not blocked.
Copyright © 1988-2008 OAR Corporation