diff --git a/src/buffered-io.cc b/src/buffered-io.cc index 4354740..c74d65e 100644 --- a/src/buffered-io.cc +++ b/src/buffered-io.cc @@ -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); }