From d3f51ee5c32436683b1d6f35d48756e80bb57210 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sun, 10 Jan 2021 01:49:55 +0330 Subject: [PATCH] LibLine: It's okay to be interrupted while reading the DSR response Fixes #4855. --- Libraries/LibLine/Editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibLine/Editor.cpp b/Libraries/LibLine/Editor.cpp index 470557e44b..de298b562c 100644 --- a/Libraries/LibLine/Editor.cpp +++ b/Libraries/LibLine/Editor.cpp @@ -1540,7 +1540,7 @@ Vector Editor::vt_dsr() do { auto nread = read(0, buf + length, 16 - length); if (nread < 0) { - if (errno == 0) { + if (errno == 0 || errno == EINTR) { // ???? continue; }