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

Skip to content

Commit 8cbe646

Browse files
bug #50963 [Messenger] do not listen to signals if the pcntl extension is missing (xabbuh)
This PR was merged into the 6.3 branch. Discussion ---------- [Messenger] do not listen to signals if the pcntl extension is missing | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- dfc90f0 do not listen to signals if the pcntl extension is missing
2 parents 844b1d9 + dfc90f0 commit 8cbe646

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)