Changeset View
Changeset View
Standalone View
Standalone View
src/future/exec/ExecFuture.php
| Show First 20 Lines • Show All 700 Lines • ▼ Show 20 Lines | if (!$this->pipes) { | ||||
| } else { | } else { | ||||
| $trap = null; | $trap = null; | ||||
| } | } | ||||
| $spec = self::$descriptorSpec; | $spec = self::$descriptorSpec; | ||||
| if ($this->useWindowsFileStreams) { | if ($this->useWindowsFileStreams) { | ||||
| $this->windowsStdoutTempFile = new TempFile(); | $this->windowsStdoutTempFile = new TempFile(); | ||||
| $this->windowsStderrTempFile = new TempFile(); | $this->windowsStderrTempFile = new TempFile(); | ||||
| $this->windowsStdoutTempFile->setIgnoreRemovalFailure(true); | |||||
| $this->windowsStderrTempFile->setIgnoreRemovalFailure(true); | |||||
| $spec = array( | $spec = array( | ||||
| 0 => self::$descriptorSpec[0], // stdin | 0 => self::$descriptorSpec[0], // stdin | ||||
| 1 => fopen($this->windowsStdoutTempFile, 'wb'), // stdout | 1 => fopen($this->windowsStdoutTempFile, 'wb'), // stdout | ||||
| 2 => fopen($this->windowsStderrTempFile, 'wb'), // stderr | 2 => fopen($this->windowsStderrTempFile, 'wb'), // stderr | ||||
| ); | ); | ||||
| if (!$spec[1] || !$spec[2]) { | if (!$spec[1] || !$spec[2]) { | ||||
| throw new Exception(pht( | throw new Exception(pht( | ||||
| ▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines | |||||