1Signal(3)             User Contributed Perl Documentation            Signal(3)
2
3
4

NAME

6       IPC::Signal - Utility functions dealing with signals
7

SYNOPSIS

9           $number = sig_num $name;
10           $name   = sig_name $number;
11
12           sig_translate_setup;
13           $number = $Sig_num{$name};
14           $name   = $Sig_name[$number];
15

DESCRIPTION

17       This module contains utility functions for dealing with signals.
18
19       Nothing is exported by default.
20
21       sig_num chopped-signal-name
22           Returns the signal number of the signal whose name (sans "SIG") is
23           chopped-signal-name, or undef if there is no such signal.
24
25           This function is prototyped to take a single scalar argument.
26
27       sig_name signal-number
28           Returns the chopped signal name (like "HUP") of signal number
29           signal-number, or undef if there is no such signal.
30
31           This function is prototyped to take a single scalar argument.
32
33       sig_translate_setup
34           If you want to use the @Sig_name and %Sig_num variables directly
35           you must call sig_translate_setup to initialize them.  This isn't
36           necessary if you only use the function interfaces sig_name() and
37           sig_num().
38
39           This function is prototyped to take no arguments.
40
41       %Sig_num
42           A hash with chopped signal name keys (like "HUP") and integer
43           signal number values.
44
45       @Sig_name
46           An array mapping signal numbers to chopped signal names (like
47           "HUP").
48

AUTHOR

50       Roderick Schertler <roderick@argon.org>
51

SEE ALSO

53       perl(1).
54
55
56
57perl v5.32.0                      2020-07-28                         Signal(3)
Impressum