IPC::Signal3pm
Utility functions dealing with signals
Usage
$number = sig_num $name;$name = sig_name $number;sig_translate_setup;$number = $Sig_num{$name};$name = $Sig_name[$number];
Overview
This module contains utility functions for dealing with signals.
Nothing is exported by default.
sig_numchopped-signal-name-
Returns the signal number of the signal whose name (sans
"SIG") is chopped-signal-name, or undef if there is no such signal.This function is prototyped to take a single scalar argument.
sig_namesignal-number-
Returns the chopped signal name (like
"HUP") of signal number signal-number, or undef if there is no such signal.This function is prototyped to take a single scalar argument.
sig_translate_setup-
If you want to use the
@Sig_nameand%Sig_numvariables directly you must callsig_translate_setupto initialize them. This isn't necessary if you only use the function interfacessig_name()andsig_num().This function is prototyped to take no arguments.
%Sig_num-
A hash with chopped signal name keys (like
"HUP") and integer signal number values.
@Sig_name-
An array mapping signal numbers to chopped signal names (like
"HUP").
Releases
13 releases since Debian 2.2 (Potato); the text changed 5 times.