Go to the previous, next section.

sigprocmask

SYNOPSIS

int sigprocmask(int how, const sigset_t *set, sigset_t *oset);

PARAMETERS

how: [in] what to do whit the signal set.

set: [in] the signal set.

oset: [out] the previous signal mask.

DESCRIPTION

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.

RETURN VALUE

On success, returns zero. On error, returns -1 and sets errno to one of the following values:

Go to the previous, next section.