From e3d71921c336b6760d4079674d87a7e56afc31a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 17 Dec 2023 12:44:23 +0100 Subject: [PATCH] buffered-io: also check for interrupts in readline This allows us to more reliable interrupt nix-eval-jobs --- src/buffered-io.cc | 2 ++ 1 file changed, 2 insertions(+) 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); }