Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Fix pcntl_signal work for PHP7 #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Worker.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(ticks = 1);

namespace Resque;

Expand Down Expand Up @@ -546,7 +547,6 @@ protected function registerSigHandlers()
return;
}

declare(ticks = 1);
pcntl_signal(SIGTERM, array($this, 'shutDownNow'));
pcntl_signal(SIGINT, array($this, 'shutDownNow'));
pcntl_signal(SIGQUIT, array($this, 'shutdown'));
Expand Down