BUGFIX: I don't eat brains
This commit is contained in:
parent
4dd743c732
commit
9ab63f7de1
|
@ -50,6 +50,8 @@ class DaemonCommand extends Command
|
|||
foreach($jobsToRun as $job) {
|
||||
$jobRepo->setJobRunning($job, true);
|
||||
$output->writeln('Runnig Job ' . $job);
|
||||
declare(ticks = 1);
|
||||
pcntl_signal(SIGCHLD, SIG_IGN);
|
||||
$pid = pcntl_fork();
|
||||
if($pid == -1) {
|
||||
$jobRepo->RunJob($job);
|
||||
|
|
Loading…
Reference in New Issue