forgot to save before commit

This commit is contained in:
“Lincoln 2021-09-24 17:53:38 -07:00 committed by Markus Pilman
parent 112d7fe632
commit cbcf0fa400

View File

@ -175,14 +175,13 @@ ACTOR Future<int> spawnProcess(std::string path,
loop {
int bytes =
read(readFD.get(), &outputBuffer[bytesRead], SERVER_KNOBS->MAX_FORKED_PROCESS_OUTPUT - bytesRead);
if (bytes > 0)
bytesRead += bytes;
if (bytes < 0 && errno == EAGAIN)
break;
else if (bytes < 0)
throw internal_error();
else if (bytes == 0)
break;
bytesRead += bytes;
}
if (err < 0) {