mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-16 02:42:23 +08:00
forgot to save before commit
This commit is contained in:
parent
112d7fe632
commit
cbcf0fa400
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user