Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a998ef

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)