sigprocmask#

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

תקציר#

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

מה מוחזר#

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

מקרי קצה#

  • 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.

הבדלים מן ה-upstream#

Fully compatible with upstream POSIX.

ראו גם#

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