NAME
Linux::Perl::sigprocmask
SYNOPSIS
# These all return the complete former signal mask (as numbers)
# when called in list context.
@oldlist = Linux::Perl::sigprocmask->block( 2, 'USR1' );
Linux::Perl::sigprocmask->block( 2, 'USR1' );
Linux::Perl::sigprocmask->unblock( 2, 'USR1' );
Linux::Perl::sigprocmask->set( 2, 'USR1' );
DESCRIPTION
An implementation of the kernel’s logic to set the signal mask.
METHODS
CLASS->block( @SIGNALS )
Add to the list of currently blocked signals.
The return in list context is the group of signals that, prior to this function call, were blocked. (Signals are referenced by number only.)
CLASS->unblock( @SIGNALS )
The inverse of block()
.
CLASS->set( @SIGNALS )
Like block()
and unblock()
but sets/clobbers the entire set of blocked signals.