8000 [Process] Remove dead code from Process · symfony/symfony@7a5eba2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a5eba2

Browse files
ausinicolas-grekas
authored andcommitted
[Process] Remove dead code from Process
1 parent 10209f5 commit 7a5eba2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ class Process implements \IteratorAggregate
7777
private bool $pty;
7878
private array $options = ['suppress_errors' => true, 'bypass_shell' => true];
7979

80-
private bool $useFileHandles;
8180
private WindowsPipes|UnixPipes $processPipes;
8281

8382
private ?int $latestSignal = null;
@@ -163,7 +162,6 @@ public function __construct(array $command, string $cwd = null, array $env = nul
163162

164163
$this->setInput($input);
165164
$this->setTimeout($timeout);
166-
$this->useFileHandles = '\\' === \DIRECTORY_SEPARATOR;
167165
$this->pty = false;
168166
}
169167

@@ -325,7 +323,7 @@ public function start(callable $callback = null, array $env = [])
325323

326324
if ('\\' === \DIRECTORY_SEPARATOR) {
327325
$commandline = $this->prepareWindowsCommandLine($commandline, $env);
328-
} elseif (!$this->useFileHandles && $this->isSigchildEnabled()) {
326+
} elseif ($this->isSigchildEnabled()) {
329327
// last exit code is output on the fourth pipe and caught to work around --enable-sigchild
330328
$descriptors[3] = ['pipe', 'w'];
331329

0 commit comments

Comments
 (0)
0