We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a84812f commit 954d093Copy full SHA for 954d093
lib/Resque/Worker.php
@@ -187,7 +187,7 @@ public function work($interval = 5)
187
$this->child = Resque::fork();
188
189
// Forked and we're the child. Or PCNTL is not installed. Run the job.
190
- if ($this->child === 0 || $this->child === false || !function_exists('pcntl_fork')) {
+ if ($this->child === 0 || $this->child === false || $this->child === -1) {
191
$status = 'Processing ' . $job->queue . ' since ' . strftime('%F %T');
192
$this->updateProcLine($status);
193
$this->log($status, self::LOG_VERBOSE);
0 commit comments