From eba6ef55e7639165893729215be4f9c2fc6c92fd Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Tue, 11 Oct 2016 12:08:54 -0700 Subject: [PATCH] abort bin/resque when managing multiple workers and pcntl_fork is unavailable --- bin/resque | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/resque b/bin/resque index 4cb50da..b445dd2 100755 --- a/bin/resque +++ b/bin/resque @@ -96,7 +96,7 @@ if(!empty($PREFIX)) { if($count > 1) { for($i = 0; $i < $count; ++$i) { $pid = Resque::fork(); - if($pid == -1) { + if($pid === false || pid === -1) { $logger->log(Psr\Log\LogLevel::EMERGENCY, 'Could not fork worker {count}', array('count' => $i)); die(); }