Branch Coverage

blib/lib/FCGI/ProcManager.pm
Criterion Covered Total %
branch 10 74 13.5


line true false branch
148 2 0 unless ($this->no_signals or $^O eq 'MSWin32')
161 0 0 if ($^O eq 'MSWin32') { }
166 0 0 $restart ? :
0 0 unless sigaction(&{"POSIX::SIG$signal";}(), $restart ? $this->{'sigaction_sa_restart'} : $this->{'sigaction_no_sa_restart'})
201 2 0 unless $this->n_processes
212 0 0 unless $this->n_processes > 0
218 0 0 if (my $pid = fork) { }
0 0 elsif (not defined $pid) { }
273 0 0 unless ($this->no_signals)
311 0 0 if (defined $this->die_timeout)
317 0 0 if (my(@pids) = keys %{$$this{'PIDS'};})
349 0 0 if (my $pid = wait) < 0
352 0 0 if delete $this->{'PIDS'}{$pid}
372 0 0 unless $fname ||= $this->pid_fname
374 0 0 unless (open $PIDFILE, ">$fname")
378 0 0 unless print $PIDFILE "$$\n"
379 0 0 unless close $PIDFILE
396 0 0 unless $fname ||= $this->pid_fname
397 0 0 unless my $ret = unlink($fname)
415 0 0 if ref $FCGI::ProcManager::SIG_CODEREF
432 0 0 if ($name eq 'TERM') { }
0 0 elsif ($name eq 'HUP') { }
437 0 0 if (my(@pids) = keys %{$$this{'PIDS'};})
462 0 0 unless ($this->no_signals)
489 0 0 unless ($this->no_signals)
506 0 0 if ($this->pm_received_signal('TERM'))
509 0 0 if ($this->pm_received_signal('HUP'))
512 0 0 if ($this->{'MANAGER_PID'} and getppid != $this->{'MANAGER_PID'})
516 0 0 unless ($this->no_signals)
551 0 11 if defined $_[0] and not ref $_[0] and $_[0] eq 'FCGI::ProcManager'
552 4 8 if (not defined $_[0] or ref $_[0] ne 'FCGI::ProcManager' and not UNIVERSAL::isa($_[0], 'FCGI::ProcManager'))
554 1 3 unless $FCGI::ProcManager::Q
557 12 0 wantarray ? :
585 0 0 unless $sig
586 0 0 if $received
603 6 4 if defined $value
676 0 0 if $this->{'PIDS'}