Skip to content

Commit 96ef3a8

Browse files
committed
fix(process): do not send signal if in ignored and sig child enabled
1 parent 8fb4dec commit 96ef3a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,11 @@ private function resetProcessData(): void
14821482
*/
14831483
private function doSignal(int $signal, bool $throwException): bool
14841484
{
1485+
// Signal seems to be send when sigchild is enable, this allow blocking the signal correctly in this case
1486+
if ($this->isSigchildEnabled() && \in_array($signal, $this->ignoredSignals)) {
1487+
return false;
1488+
}
1489+
14851490
if (null === $pid = $this->getPid()) {
14861491
if ($throwException) {
14871492
throw new LogicException('Cannot send signal on a non running process.');

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