mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 13:42:22 +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 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue