perl-Signals-XSIG-0.15-alt1.noarch.rpm


Advertisement

Description

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 ftp.altlinux.org
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
perlipc).
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 { ... }
...
1;
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;
do_some_stuff();
$XSIG{__WARN__}[2] = \&log_messages_with_authority;
do_some_more_stuff();
$XSIG{__WARN__}[2] = undef;
=back

Alternatives

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

Requires

Name Value
/usr/share/perl5 -
perl(B.pm) -
perl(Config.pm) -
perl(POSIX.pm) -
perl(Symbol.pm) -
perl(Time/HiRes.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Signals/XSIG.pm) = 0.150
perl(Signals/XSIG/Default.pm) = 0.150
perl(Signals/XSIG/TieArray56.pm) -
perl-Signals-XSIG = 0.15-alt1

Download

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] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/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

Files

Path
/usr/share/doc/perl-Signals-XSIG-0.15/Changes
/usr/share/doc/perl-Signals-XSIG-0.15/README
/usr/share/perl5/Signals/XSIG.pm
/usr/share/perl5/Signals/XSIG/Default.pm
/usr/share/perl5/Signals/XSIG/TieArray56.pm

See Also

Package Description
perl-Signer-AWSv4-0.03-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(https://silvergoldbull.com/) web service
perl-Sim-0.03-alt1.noarch.rpm Simulator engine for discrete events
perl-Sim-OPT-0.40.14-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
Advertisement
Advertisement