| line |
true |
false |
branch |
|
19
|
0 |
1 |
unless $loop |
|
20
|
0 |
1 |
if %args |
|
41
|
0 |
3 |
unless defined $sig_or_list |
|
42
|
0 |
3 |
unless $cb |
|
43
|
0 |
3 |
if ref $cb ne "CODE" |
|
46
|
0 |
3 |
if %opt |
|
49
|
0 |
3 |
if (ref $sig_or_list eq 'ARRAY') { } |
|
|
3 |
0 |
elsif (not ref $sig_or_list) { } |
|
60
|
0 |
3 |
unless @sigs |
|
76
|
2 |
1 |
unless ($self->{'_mask'}->ismember($sig)) |
|
87
|
0 |
3 |
unless defined $sig |
|
89
|
0 |
3 |
if (not ref $sig and $sig =~ /\A\d+\z/u) |
|
93
|
0 |
3 |
if ref $sig |
|
101
|
0 |
3 |
unless $sub |
|
106
|
2 |
1 |
if $self->{'_fh'} |
|
108
|
0 |
1 |
unless eval {
do {
require Linux::FD::Signal;
1
}
} |
|
116
|
0 |
1 |
unless my $loop = $self->{'loop'} |
|
128
|
0 |
2 |
if $self->{'_blocked'}->ismember($sig) |
|
136
|
0 |
3 |
unless $loop |
|
138
|
0 |
3 |
unless my $fh = $self->{'_fh'} |
|
144
|
3 |
4 |
unless ($info) |
|
146
|
3 |
0 |
if $!{'EAGAIN'} or $!{'EWOULDBLOCK'} |
|
147
|
0 |
0 |
if $@ and $@ =~ /EAGAIN/u |
|
148
|
0 |
0 |
if $@ |
|
153
|
4 |
0 |
if defined $sig |
|
156
|
0 |
3 |
unless %count |
|
160
|
1 |
3 |
unless my $h = $self->{'_handlers'}{$sig} |
|
161
|
0 |
3 |
unless my $cb = $h->{'cb'} |
|
171
|
0 |
1 |
unless my $h = $self->{'_handlers'}{$sig} |
|
172
|
0 |
1 |
if not $h->{'sub'} or $h->{'sub'} != $sub |
|
196
|
1 |
1 |
unless $self->{'_active'} |
|
199
|
1 |
0 |
if $signal |
|
203
|
0 |
0 |
$self->{'_active'} ? : |