sigprocmask#

Change, query, or both the set of signals blocked for this process.

Synopsis#

use POSIX qw(sigprocmask SIG_BLOCK SIG_UNBLOCK SIG_SETMASK);
my $mask = POSIX::SigSet->new(SIGINT);
sigprocmask(SIG_BLOCK, $mask);

What you get back#

"0 but true" on success, undef on failure. When $oldsigset is supplied, it is filled with the mask in effect before the call.

Edge cases#

  • Passing a non-POSIX::SigSet reference for either set croaks with sigset is not of type POSIX::SigSet / oldsigset is not of type POSIX::SigSet.

Differences from upstream#

Fully compatible with upstream POSIX.

See also#

  • sigpending, sigsuspend, sigaction — the rest of the POSIX signal API.