[Process] Fix a mistake triggering stream_select errors
This commit is contained in:
parent
d6948581ac
commit
2d586d245d
@ -213,14 +213,15 @@ class Process
|
|||||||
|
|
||||||
if (null === $this->stdin) {
|
if (null === $this->stdin) {
|
||||||
fclose($this->pipes[0]);
|
fclose($this->pipes[0]);
|
||||||
|
unset($this->pipes[0]);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
$writePipes = array($this->pipes[0]);
|
$writePipes = array($this->pipes[0]);
|
||||||
|
unset($this->pipes[0]);
|
||||||
$stdinLen = strlen($this->stdin);
|
$stdinLen = strlen($this->stdin);
|
||||||
$stdinOffset = 0;
|
$stdinOffset = 0;
|
||||||
}
|
}
|
||||||
unset($this->pipes[0]);
|
|
||||||
|
|
||||||
while ($writePipes) {
|
while ($writePipes) {
|
||||||
$r = $this->pipes;
|
$r = $this->pipes;
|
||||||
|
Reference in New Issue
Block a user