buffered-io: also check for interrupts in readline
This allows us to more reliable interrupt nix-eval-jobs
This commit is contained in:
parent
4a1123c42d
commit
e3d71921c3
|
@ -51,6 +51,8 @@ LineReader::LineReader(LineReader &&other) {
|
|||
return {}; // Return an empty string_view in case of error
|
||||
}
|
||||
|
||||
nix::checkInterrupt();
|
||||
|
||||
// Remove trailing newline
|
||||
return std::string_view(buffer, read - 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue