Skip to content

Commit

Permalink
added pcntl_signal_dispatch() in daemon loop for PHP7 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo101 committed Nov 27, 2017
1 parent 4a597e3 commit 58705e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Lifo/Daemon/Daemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,7 @@ private function wait($start)
if ($this->shutdown) {
return;
}
pcntl_signal_dispatch();

if ($this->isIdle($start)) {
$this->dispatch(DaemonEvent::ON_IDLE);
Expand Down

0 comments on commit 58705e2

Please sign in to comment.