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:
parent
3855fb6cba
commit
08d53d901e
@ -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++) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user