Skip to content

Commit

Permalink
Double check if pcntl function exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Jun 24, 2024
1 parent 0b3b27e commit c211861
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EventListener/DispatchPcntlSignalListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class DispatchPcntlSignalListener implements EventSubscriberInterface
{
public function onWorkerRunning(): void
{
if (!\function_exists('pcntl_signal_dispatch')) {
return;
}

pcntl_signal_dispatch();
}

Expand Down

0 comments on commit c211861

Please sign in to comment.