mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-21 16:01:53 +00:00
Merge pull request #296 from ruudk/patch-1
POSIX signals are not working on PHP 7
This commit is contained in:
commit
6273fdd193
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user