Skip to content

Commit 6273fdd

Browse files
authored
Merge pull request #296 from ruudk/patch-1
POSIX signals are not working on PHP 7
2 parents ab07fda + 91caca7 commit 6273fdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Resque/Worker.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
declare(ticks = 1);
3+
24
/**
35
* Resque worker that handles checking queues for jobs, fetching them
46
* off the queues, running them and handling the result.
@@ -349,7 +351,6 @@ private function registerSigHandlers()
349351
return;
350352
}
351353

352-
declare(ticks = 1);
353354
pcntl_signal(SIGTERM, array($this, 'shutDownNow'));
354355
pcntl_signal(SIGINT, array($this, 'shutDownNow'));
355356
pcntl_signal(SIGQUIT, array($this, 'shutdown'));

0 commit comments

Comments
 (0)