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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy