Major updates/cleanup.

This commit is contained in:
2026-09-08 07:00:13 +01:00
parent 0df03f418a
commit 0760209417
23 changed files with 668 additions and 441 deletions
+3 -1
View File
@@ -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;