Skip to content

Commit

Permalink
do not listen to signals if the pcntl extension is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jul 13, 2023
1 parent c89ae8e commit f201808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/StopWorkerOnSigtermSignalListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ class StopWorkerOnSigtermSignalListener extends StopWorkerOnSignalsListener
{
public function __construct(LoggerInterface $logger = null)
{
parent::__construct([SIGTERM], $logger);
parent::__construct(\defined('SIGTERM') ? [SIGTERM] : [], $logger);
}
}

0 comments on commit f201808

Please sign in to comment.