1
0
mirror of https://github.com/danog/process.git synced 2024-12-11 16:49:40 +01:00

Remove failures when === '', because Windows sometimes triggers that

This commit is contained in:
Niklas Keller 2017-09-17 21:35:23 +02:00
parent 3855fb6cba
commit 08d53d901e
2 changed files with 1 additions and 3 deletions

View File

@ -150,6 +150,7 @@ final class Runner implements ProcessRunner {
if ($handle->exitCodeWatcher !== null) {
Loop::cancel($handle->exitCodeWatcher);
$handle->exitCodeWatcher = null;
}
for ($i = 0; $i < 4; $i++) {

View File

@ -206,7 +206,6 @@ final class SocketConnector {
$data = \fread($socket, 5);
if ($data === false || $data === '') {
$this->failHandleStart($handle, 'Failed to read PID from wrapper: No data received');
return;
}
@ -247,8 +246,6 @@ final class SocketConnector {
$data = \fread($socket, 5);
if ($data === false || $data === '') {
$handle->status = ProcessStatus::ENDED;
$handle->joinDeferred->fail(new ProcessException('Failed to read exit code from wrapper: No data received'));
return;
}