| line |
true |
false |
branch |
|
23
|
0 |
55 |
if $command and $commandf |
|
24
|
2 |
53 |
if (not $command and $commandf) |
|
28
|
23 |
32 |
$command ? : |
|
52
|
0 |
55 |
if $self->{'env'} |
|
54
|
21 |
34 |
if (ref $command eq 'CODE') { } |
|
67
|
6 |
15 |
if ($self->{'redirect'}) { } |
|
73
|
21 |
0 |
if (length $stdout and my $sub = $self->{'stdout'}) |
|
78
|
15 |
0 |
if (not $self->{'redirect'} and length $stderr and my $sub = $self->{'stderr'}) |
|
84
|
17 |
4 |
if ($self->{'keep'}) |
|
95
|
19 |
2 |
unless ($self->{'timeout'}) |
|
111
|
0 |
2 |
if (not $err) { } |
|
|
2 |
0 |
elsif ($err eq "__TIMEOUT__\n") { } |
|
124
|
0 |
0 |
if (ref $command) { } |
|
131
|
0 |
0 |
$self->{'timeout'} ? : |
|
135
|
0 |
0 |
if ($INT) |
|
141
|
0 |
0 |
if ($res == -1) { } |
|
|
0 |
0 |
elsif ($res > 0) { } |
|
148
|
0 |
0 |
if ($timeout_at) |
|
150
|
0 |
0 |
if ($timeout_at <= $now) |
|
168
|
26 |
8 |
unless ($self->{'redirect'}) |
|
174
|
0 |
34 |
unless defined $pid |
|
175
|
9 |
25 |
if ($pid == 0) |
|
178
|
2 |
7 |
if ($self->{'redirect'}) { } |
|
183
|
9 |
0 |
if ($Config::Config{'d_setpgrp'}) |
|
184
|
0 |
9 |
unless POSIX::setpgid(0, 0) |
|
187
|
6 |
3 |
if (ref $command) { } |
|
196
|
25 |
0 |
$Config::Config{'d_setpgrp'} ? : |
|
200
|
3 |
22 |
$self->{'timeout'} ? : |
|
204
|
0 |
530 |
if ($INT) |
|
208
|
131 |
399 |
if ($timeout_at and not $timeout) |
|
210
|
3 |
128 |
if ($now > $timeout_at) |
|
217
|
50 |
37 |
$ready == $stdout_read ? : |
|
219
|
43 |
44 |
if ($len) { } |
|
222
|
3 |
40 |
unless my(@line) = $buffer->get |
|
223
|
2 |
38 |
unless my $sub = $self->{$type} |
|
226
|
0 |
44 |
unless defined $len |
|
233
|
4 |
46 |
unless my $sub = $self->{$type} |
|
234
|
4 |
42 |
unless my $buffer = $self->{'_buffer'}{$type} |
|
235
|
37 |
5 |
unless my(@line) = $buffer->get(1) |
|
245
|
25 |
0 |
$self->{'_buffer'}{'stdout'} ? : |
|
|
19 |
6 |
$self->{'_buffer'}{'stderr'} ? : |