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.