# 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' );
An implementation of the kernel’s logic to set the signal mask.
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.)
The inverse of block().
Like block() and unblock() but sets/clobbers the entire set of blocked signals.
To install Linux::Perl, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.