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