mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 18:32:18 +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 {
|
loop {
|
||||||
int bytes =
|
int bytes =
|
||||||
read(readFD.get(), &outputBuffer[bytesRead], SERVER_KNOBS->MAX_FORKED_PROCESS_OUTPUT - bytesRead);
|
read(readFD.get(), &outputBuffer[bytesRead], SERVER_KNOBS->MAX_FORKED_PROCESS_OUTPUT - bytesRead);
|
||||||
if (bytes > 0)
|
|
||||||
bytesRead += bytes;
|
|
||||||
if (bytes < 0 && errno == EAGAIN)
|
if (bytes < 0 && errno == EAGAIN)
|
||||||
break;
|
break;
|
||||||
else if (bytes < 0)
|
else if (bytes < 0)
|
||||||
throw internal_error();
|
throw internal_error();
|
||||||
else if (bytes == 0)
|
else if (bytes == 0)
|
||||||
break;
|
break;
|
||||||
|
bytesRead += bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user