line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lab::GenericSignals; |
2
|
|
|
|
|
|
|
$Lab::GenericSignals::VERSION = '3.881'; |
3
|
|
|
|
|
|
|
#ABSTRACT: Signal handling |
4
|
|
|
|
|
|
|
|
5
|
9
|
|
|
9
|
|
124
|
use v5.20; |
|
9
|
|
|
|
|
32
|
|
6
|
|
|
|
|
|
|
|
7
|
9
|
|
|
9
|
|
50
|
use warnings; |
|
9
|
|
|
|
|
28
|
|
|
9
|
|
|
|
|
266
|
|
8
|
9
|
|
|
9
|
|
51
|
use strict; |
|
9
|
|
|
|
|
23
|
|
|
9
|
|
|
|
|
503
|
|
9
|
|
|
|
|
|
|
|
10
|
9
|
|
|
9
|
|
4327
|
use sigtrap 'handler' => \&abort_all, qw(normal-signals error-signals); |
|
9
|
|
|
|
|
10710
|
|
|
9
|
|
|
|
|
86
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub abort_all { |
13
|
9
|
|
|
9
|
0
|
44
|
foreach my $object ( @{Lab::Generic::OBJECTS} ) { |
14
|
21
|
|
|
|
|
159
|
$object->abort(); |
15
|
|
|
|
|
|
|
} |
16
|
7
|
|
|
|
|
26
|
@{Lab::Generic::OBJECTS} = (); |
17
|
7
|
|
|
|
|
215
|
exit; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
END { |
21
|
9
|
|
|
9
|
|
60645
|
abort_all(); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=encoding UTF-8 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Lab::GenericSignals - Signal handling |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
version 3.881 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This software is copyright (c) 2023 by the Lab::Measurement team; in detail: |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Copyright 2014 Andreas K. Huettel |
45
|
|
|
|
|
|
|
2015 Christian Butschkow |
46
|
|
|
|
|
|
|
2016 Simon Reinhardt |
47
|
|
|
|
|
|
|
2017 Andreas K. Huettel |
48
|
|
|
|
|
|
|
2019 Simon Reinhardt |
49
|
|
|
|
|
|
|
2020 Andreas K. Huettel |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
53
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |