Branch Coverage

blib/lib/POE/Resource/Signals.pm
Criterion Covered Total %
branch 93 126 73.8


line true false branch
70 0 4 unless exists $sig_rec->{$old_id}
75 4 6 if exists $kr_sessions_to_signals{$old_id}
78 2 0 unless exists $pid_rec->{$old_id}
83 0 10 if exists $kr_sessions_to_pids{$old_id}
150 293 1 unless (keys %_safe_signals)
155 10134 9669 if $signal =~ /^ ( NUM\d+ |__[A-Z0-9]+__ |ALL|CATCHALL|DEFER|HOLD|IGNORE|MAX|PAUSE |RTMIN|RTMAX|SETS |SEGV | ) $/x
168 0 9669 if $signal eq "BUS" and RUNNING_IN_HELL()
171 0 586 if $signal =~ /^CH?LD$/ and exists $INC{'Apache.pm'}
179 293 0 if exists $SIG{'CHLD'}
180 292 0 if exists $SIG{'CLD'}
181 292 0 if exists $SIG{'PIPE'}
257 0 204 if ($kr_has_child_procs)
261 0 204 if ($polling_for_signals)
265 0 204 if ($self->_data_sig_pipe_has_signals)
269 0 202 if (exists $kr_signals{'CHLD'})
275 202 0 unless (RUNNING_IN_HELL())
285 0 2 if ($pid == 0)
299 2 202 if ($leaked_children)
327 194 136 if (not exists $kr_signals{$signal} and exists $_safe_signals{$signal} and $signal ne 'CHLD' || !scalar(keys %kr_sessions_to_pids))
341 159 80 if (not exists $kr_signals{$signal} and exists $_safe_signals{$signal} and $signal ne 'CHLD' || !scalar(keys %kr_sessions_to_pids))
357 553 13 unless keys %{$kr_sessions_to_signals{$sid};}
362 551 15 unless (keys %{$kr_signals{$signal};})
377 233 584 if (exists $kr_sessions_to_signals{$sid})
383 10 807 if (exists $kr_sessions_to_pids{$sid})
420 140 22 unless keys %{$kr_pids_to_events{$pid};}
426 118 44 unless (keys %{$kr_sessions_to_pids{$sid};})
439 8047 840 unless $kr_has_child_procs or $self->_data_sig_pipe_has_signals
443 382 458 if exists $kr_sessions_to_pids{$sid}
496 0 1 unless exists $kr_sessions_to_signals{$sid}
537 217 277 if ($POE::Kernel::kr_signal_type & 2 or $POE::Kernel::kr_signal_type & 1 and not $POE::Kernel::kr_signal_total_handled)
542 0 300 unless $self->_data_ses_exists($dead_session->ID)
572 0 1 if $polling_for_signals
588 21 370 if $polling_for_signals
664 235 141 if ($pid > 0 or RUNNING_IN_HELL() and $pid < -1)
665 235 0 if (RUNNING_IN_HELL() or WIFEXITED($?) or WIFSIGNALED($?)) { }
674 138 102 if (exists $kr_pids_to_events{$pid})
710 0 141 if $pid != -1
714 0 141 if ($! == 4)
729 141 0 if ($! == 10)
758 2316 219 unless $kr_has_child_procs or $self->_data_sig_pipe_has_signals
762 149 70 if scalar keys %kr_pids_to_events
802 786 9792 unless $signal_pipe_read
825 0 300 if (RUNNING_IN_HELL()) { }
832 0 300 unless ($signal_pipe_write)
851 0 198 if RUNNING_IN_HELL()
860 0 625 if RUNNING_IN_HELL()
862 198 427 unless ($signal_mask_all)
866 0 625 unless sigprocmask(2, $signal_mask_all, $mask_temp)
872 0 625 if RUNNING_IN_HELL()
874 0 625 unless ($signal_mask_none)
878 0 625 unless sigprocmask(2, $signal_mask_none, $mask_temp)
886 212 2 if ($signal_pipe_read)
890 212 2 if ($signal_pipe_write)
908 0 236 if $finalizing
910 0 236 unless (defined $signal_pipe_pid)
918 0 236 if ($$ != $signal_pipe_pid)
978 82 354 if $octets_count
979 119 201 if defined $octets_count
981 82 119 if $! == 11 or $! == 11
997 119 82 unless @pending_signals
1016 0 202 if $signal_src_pid != $$
1018 83 153 if ($signal_name eq 'CHLD') { }
125 28 elsif ($signal_name eq 'PIPE') { }