line |
true |
false |
branch |
39
|
2 |
0 |
unless ($logfile and $pidfile) |
75
|
2 |
0 |
if (defined($pid = fork)) |
84
|
0 |
0 |
if ($loop < 6 and $! == 11 || $! == 12) |
109
|
2 |
0 |
if $debug |
110
|
0 |
0 |
if (my $pid = $self->pid_check) |
117
|
0 |
0 |
if ($pid) |
122
|
0 |
0 |
unless chdir $FindBin::Bin |
124
|
0 |
0 |
if POSIX::setsid() < 0 |
127
|
0 |
0 |
if $pid |
133
|
0 |
0 |
if $openmax < 0 |
158
|
0 |
2 |
if (-f -s $pidfile) |
159
|
0 |
0 |
if (my $num = $pid->running) |
166
|
0 |
2 |
unless $pid->write |
186
|
0 |
2 |
if -f -s $pidfile |
211
|
0 |
2 |
if ($self->debug) { } |
247
|
0 |
2 |
unless my $nproc = $opts{'nproc'} |
248
|
0 |
2 |
unless my $code = $opts{'code'} |
249
|
0 |
2 |
unless ref $code eq 'CODE' |
268
|
1 |
1 |
if (my $pid = $self->_fork) |
285
|
0 |
0 |
if (delete $childs{$_[0]}) |
290
|
0 |
0 |
unless $cv->ready |
313
|
1 |
1 |
if ($is_child) |
342
|
0 |
0 |
if (kill 0, $pid) { } |