Major updates/cleanup.
This commit is contained in:
@@ -16,9 +16,11 @@ std::pair<std::string, bool> IO::read_pipe() {
|
||||
continue;
|
||||
}
|
||||
if (n == 0) {
|
||||
if (pipe_input.empty())
|
||||
return {"", true};
|
||||
std::string line = std::move(pipe_input);
|
||||
pipe_input.clear();
|
||||
return {line, true};
|
||||
return {line, false};
|
||||
}
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user