line |
true |
false |
branch |
21
|
21 |
0 |
@_ == 1 ? : |
50
|
0 |
22 |
if $$self{'in_child'} |
57
|
115 |
63 |
if ($action > 0) { } |
|
5 |
58 |
elsif ($action < 0) { } |
59
|
38 |
77 |
if (my $subref = $self->before_fork) |
63
|
0 |
115 |
unless (defined $pid) |
68
|
17 |
98 |
unless ($pid) |
73
|
0 |
17 |
if $self->signal_received |
74
|
7 |
10 |
if ($cb) |
80
|
31 |
67 |
if (my $subref = $self->after_fork) |
93
|
0 |
161 |
if $$self{'__dbg_callback'} |
95
|
23 |
138 |
if (my($exit_pid, $status) = $self->_wait(!$$self{'__dbg_callback'} && $action <= 0)) |
98
|
5 |
18 |
if (delete $$self{'worker_pids'}{$exit_pid} == $$self{'generation'} and $status != 0) |
105
|
5 |
0 |
if (my $action = $self->_action_for($self->signal_received)) |
107
|
0 |
5 |
if ($interval) { } |
116
|
0 |
0 |
if (@pids == 0) { } |
135
|
0 |
7 |
if $self->manager_pid == $$ |
154
|
116 |
47 |
if $self->num_workers < $self->max_workers |
161
|
10 |
32 |
if ($cb) |
174
|
180 |
0 |
unless $$self{'delayed_task'} |
176
|
0 |
0 |
if $timeleft > 0 |
185
|
0 |
10 |
unless my $t = $$self{'trap_signals'}{$sig} |
187
|
10 |
0 |
unless ref $t |
197
|
19 |
0 |
if (my($pid) = $self->_wait(1)) |
198
|
19 |
0 |
if (delete $$self{'worker_pids'}{$pid}) |
205
|
0 |
4 |
if ($timeout) { } |
217
|
0 |
0 |
if $@ and not $is_timeout |
227
|
0 |
108 |
$secs ? : |
233
|
98 |
82 |
if (not $blocking) { } |
238
|
0 |
82 |
$self->_decide_action > 0 && defined $$self{'_no_adjust_until'} ? : |
247
|
46 |
36 |
if (defined $sleep_secs) { } |
250
|
10 |
36 |
if (my(@r) = Proc::Wait3::wait3(0)) |
254
|
32 |
4 |
if (my(@r) = Proc::Wait3::wait3(1)) |