line |
true |
false |
branch |
101
|
0 |
0 |
if ($item eq 'verbose') { } |
|
0 |
0 |
elsif ($item eq 'manual') { } |
|
0 |
0 |
elsif ($item eq 'timeout') { } |
107
|
0 |
0 |
unless (defined $timeout and $timeout =~ /^\d+$/ and int $timeout eq $timeout and $timeout > 0) |
108
|
0 |
0 |
defined $timeout ? : |
112
|
0 |
0 |
if (defined $filename) |
119
|
1 |
0 |
unless $^C or $manual and not defined $filename |
126
|
0 |
2 |
unless open my $pid_in, '<', $pid_file_created |
130
|
2 |
0 |
if ($pid == $$) { } |
131
|
0 |
2 |
if ($^O =~ /^MSWin/) |
135
|
2 |
0 |
if (unlink $pid_file_created) { } |
136
|
0 |
2 |
if $verbose |
142
|
0 |
0 |
if $verbose |
145
|
2 |
0 |
if defined $pid_in |
188
|
1 |
1 |
unless defined $pid_file |
190
|
2 |
0 |
unless defined $use_timeout |
192
|
0 |
0 |
if (defined $use_timeout and $use_timeout =~ /\D/ || int $use_timeout ne $use_timeout || $use_timeout < 0) |
193
|
0 |
0 |
if ($warn_and_exit) { } |
200
|
0 |
2 |
if (open my $pid_in, '<', $pid_file) |
206
|
0 |
0 |
if ($pid_data =~ /(\d+)\s+(\d+)/o) { } |
212
|
0 |
0 |
if ($pid != $$ and kill 0, $pid) |
214
|
0 |
0 |
if ($timeout and $ptime < time - $timeout) { } |
216
|
0 |
0 |
if $verbose |
220
|
0 |
0 |
if ($warn_and_exit) { } |
230
|
2 |
0 |
unless (grep {$_ eq $pid_file;} @pid_files_created) |
232
|
0 |
2 |
unless (open $pid_out, '>', $pid_file) |
233
|
0 |
0 |
if ($warn_and_exit) { } |
244
|
0 |
2 |
if $verbose |
276
|
0 |
0 |
unless scalar @pid_files_created |