Changeset View
Changeset View
Standalone View
Standalone View
src/future/exec/ExecFuture.php
Show First 20 Lines • Show All 731 Lines • ▼ Show 20 Lines | if (!$this->pipes) { | ||||
$trap->destroy(); | $trap->destroy(); | ||||
} else { | } else { | ||||
$err = error_get_last(); | $err = error_get_last(); | ||||
} | } | ||||
if (!is_resource($proc)) { | if (!is_resource($proc)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Failed to %s: %s', | 'Failed to `%s`: %s', | ||||
'proc_open()', | 'proc_open()', | ||||
$err)); | $err)); | ||||
} | } | ||||
$this->pipes = $pipes; | $this->pipes = $pipes; | ||||
$this->proc = $proc; | $this->proc = $proc; | ||||
list($stdin, $stdout, $stderr) = $pipes; | list($stdin, $stdout, $stderr) = $pipes; | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |