Merge pull request #296 from ruudk/patch-1

POSIX signals are not working on PHP 7
This commit is contained in:
Chris Boulton 2016-08-08 13:25:27 -07:00 committed by GitHub
commit 6273fdd193

View File

@ -1,4 +1,6 @@
<?php
declare(ticks = 1);
/**
* Resque worker that handles checking queues for jobs, fetching them
* off the queues, running them and handling the result.
@ -349,7 +351,6 @@ class Resque_Worker
return;
}
declare(ticks = 1);
pcntl_signal(SIGTERM, array($this, 'shutDownNow'));
pcntl_signal(SIGINT, array($this, 'shutDownNow'));
pcntl_signal(SIGQUIT, array($this, 'shutdown'));