| blib/lib/cPanel/TaskQueue/ChildProcessor.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 5 | 12 | 41.6 |
| line | true | false | branch |
|---|---|---|---|
| 56 | 0 | 3 | if ($task->retries_remaining and $task->get_userdata('sched')) |
| 70 | 0 | 20 | unless defined $pid |
| 74 | 15 | 5 | if $pid |
| 85 | 0 | 5 | unless (eval { do { local $SIG{'CHLD'} = 'DEFAULT'; local $SIG{'ALRM'} = sub { die "timeout detected\n"; } ; $oldalarm = alarm $timeout; $self->_do_child_task($task, $logger); alarm $oldalarm; 1 } }) |
| 88 | 0 | 0 | if ($ex eq "timeout detected\n") { } |
| 100 | 0 | 0 | if ($@) |