Go to the previous, next section.
int sigprocmask(int how, const sigset_t *set, sigset_t
*oset);
how: [in] what to do whit the signal set.
set: [in] the signal set.
oset: [out] the previous signal mask.
Modifies the signal mask. The parameter how can take one of the following values:
SIG_BLOCK
mask |= set
. Adds new signals to the set of blocked
signals.
SIG_UNBLOCK
mask &= ~set
. Removes the signals from he set of blocked
signals.
SIG_SETMASK
mask = set
. set becomes the new signal mask.
On success, returns zero. On error, returns -1 and sets errno
to
one of the following values:
EINVAL
: how has an invalid value.
EFAULT
.
Go to the previous, next section.