$this->
checkTimeout();
$running =
$this->
isRunning() && ('\\' === \DIRECTORY_SEPARATOR ||
$this->processPipes->
areOpen());
$this->
readPipes($running, '\\' !== \DIRECTORY_SEPARATOR || !
$running);
} while ($running);
while ($this->
isRunning()) { $this->
checkTimeout();
usleep(1000
);
} if ($this->processInformation
['signaled'
] &&
$this->processInformation
['termsig'
] !==
$this->latestSignal
) { throw new ProcessSignaledException($this);
} return $this->exitcode;
} /**
* Waits until the callback returns true.
*
* The callback receives the type of output (out or err) and some bytes
* from the output in real-time while writing the standard input to the process.
* It allows to have feedback from the independent process during execution.
*
* @throws RuntimeException When process timed out
* @throws LogicException When process is not yet started
* @throws ProcessTimedOutException In case the timeout was reached
*/