Skip to content

Commit dfc90f0

Browse files
committed
do not listen to signals if the pcntl extension is missing
1 parent e0b8655 commit dfc90f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/EventListener/StopWorkerOnSigtermSignalListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ class StopWorkerOnSigtermSignalListener extends StopWorkerOnSignalsListener
2424
{
2525
public function __construct(LoggerInterface $logger = null)
2626
{
27-
parent::__construct([SIGTERM], $logger);
27+
parent::__construct(\defined('SIGTERM') ? [SIGTERM] : [], $logger);
2828
}
2929
}

0 commit comments

Comments
 (0)