Skip to content

Commit eba6ef5

Browse files
committed
abort bin/resque when managing multiple workers and pcntl_fork is unavailable
1 parent 4dbdda6 commit eba6ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/resque

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if(!empty($PREFIX)) {
9696
if($count > 1) {
9797
for($i = 0; $i < $count; ++$i) {
9898
$pid = Resque::fork();
99-
if($pid == -1) {
99+
if($pid === false || pid === -1) {
100100
$logger->log(Psr\Log\LogLevel::EMERGENCY, 'Could not fork worker {count}', array('count' => $i));
101101
die();
102102
}

0 commit comments

Comments
 (0)