perl-Signals-XSIG - install multiple signal handlers through %XSIG

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Signals-XSIG
Package version 0.15
Package release alt1
Package architecture noarch
Package type rpm
Installed size 50.43 KB
Download size 50.43 KB
Official Mirror
Perl provides the magic global hash variable `%SIG' to make it
easy to trap and handle signals (see the section on "%SIG" in the perlvar manpage and
The hash-of-lists variable `%XSIG' provided by this module
has a similar interface for setting an arbitrary number of
handlers on any signal.
There are at least a couple of use cases for this module:
=over 4
=item 1.
You have written a module that raises signals and makes
use of signal handlers, but you don't want to preclude the
end-user of your module from doing their own handling of that
signal. The solution is to install your own signal handler
into a "non-default" index. Now your module's end-user can
set and unset `$SIG{signal}' as much as he or she would like.
When the signal is trapped, both your module's signal handler
and the end-user's signal handler (if any) will be invoked.
package My::Module::With::USR1::Handler;
use Signals::XSIG;
sub import {
$XSIG{'USR1'}[-1] = \&My_USR1_handler;
sub My_USR1_handler { ... }
sub My_sub_that_raises_SIGUSR1 { ... }
Now the user of your module can still install their own
`SIGUSR1' handler through `$SIG{USR1}' without interfering
with your owm `SIGUSR1' handler.
=item 2.
You have multiple "layers" of signal handlers that you
want to enable and disable at will. For example, you
may want to enable some handlers to write logging information
about signals received.
use Signals::XSIG;
$XSIG{__WARN__}[1] = \&log_messages;
$XSIG{__WARN__}[2] = \&log_messages_with_authority;
$XSIG{__WARN__}[2] = undef;


Package Version Architecture Repository
perl-Signals-XSIG - - -


Name Value
/usr/share/perl5 -
perl( -
perl( -
perl( -
perl( -
perl(Time/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(Signals/ = 0.150
perl(Signals/XSIG/ = 0.150
perl(Signals/XSIG/ -
perl-Signals-XSIG = 0.15-alt1


Type URL
Binary Package perl-Signals-XSIG-0.15-alt1.noarch.rpm
Source Package perl-Signals-XSIG-0.15-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Signals-XSIG rpm package:
    # sudo apt-get install perl-Signals-XSIG



See Also

Package Description
perl-Signer-AWSv4-0.04-alt1.noarch.rpm Implements the AWS v4 signature algorithm
perl-Silly-StringMaths-0.13-alt1.noarch.rpm perl module Silly-StringMaths
perl-Silly-Werder-0.90-alt1.noarch.rpm perl module Silly-Werder
perl-SilverGoldBull-API-0.08-alt1.noarch.rpm Perl client for the SilverGoldBull( web service
perl-Sim-0.03-alt1.noarch.rpm Simulator engine for discrete events
perl-Sim-OPT-0.219-alt1.noarch.rpm Sim::OPT is a tool for detailed metadesign managing the ESP-r building performance simulation platf
perl-Sim-OPTS-0.30-alt1.noarch.rpm Manages parametric explorations by the means of the ESP-r building performance simulation platform
perl-SimString-Wrapper-0.03-alt1.noarch.rpm Interface to SimString
perl-Simple-Accessor-1.11-alt1.noarch.rpm a light and simple way to provide accessor in perl
perl-Simple-Factory-0.09-alt1.noarch.rpm simple factory
perl-Simple-Html-0.01-alt1.noarch.rpm make simple html, without install Template
perl-Simple-IPInfo-0.12-alt1.noarch.rpm Get IP/IPList Info (location, as number, etc)
perl-Simple-IPInfo-scripts-0.12-alt1.noarch.rpm Simple-IPInfo scripts
perl-Simple-SAX-Serializer-0.05-alt1.noarch.rpm Simple XML serializer
perl-Simple-Timer-0.01-alt1.noarch.rpm Yet another simple timer