From 7a5eba206cbc3d167fa3323813e52f58dd45ee1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Tue, 31 Oct 2023 23:11:00 +0100 Subject: [PATCH] [Process] Remove dead code from Process --- src/Symfony/Component/Process/Process.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index a0fb03f12e113..00790a55f0686 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -77,7 +77,6 @@ class Process implements \IteratorAggregate private bool $pty; private array $options = ['suppress_errors' => true, 'bypass_shell' => true]; - private bool $useFileHandles; private WindowsPipes|UnixPipes $processPipes; private ?int $latestSignal = null; @@ -163,7 +162,6 @@ public function __construct(array $command, string $cwd = null, array $env = nul $this->setInput($input); $this->setTimeout($timeout); - $this->useFileHandles = '\\' === \DIRECTORY_SEPARATOR; $this->pty = false; } @@ -325,7 +323,7 @@ public function start(callable $callback = null, array $env = []) if ('\\' === \DIRECTORY_SEPARATOR) { $commandline = $this->prepareWindowsCommandLine($commandline, $env); - } elseif (!$this->useFileHandles && $this->isSigchildEnabled()) { + } elseif ($this->isSigchildEnabled()) { // last exit code is output on the fourth pipe and caught to work around --enable-sigchild $descriptors[3] = ['pipe', 'w'];