1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

LibLine: It's okay to be interrupted while reading the DSR response

Fixes #4855.
This commit is contained in:
AnotherTest 2021-01-10 01:49:55 +03:30 committed by Andreas Kling
parent 9523bcbfe1
commit d3f51ee5c3

View file

@ -1540,7 +1540,7 @@ Vector<size_t, 2> Editor::vt_dsr()
do {
auto nread = read(0, buf + length, 16 - length);
if (nread < 0) {
if (errno == 0) {
if (errno == 0 || errno == EINTR) {
// ????
continue;
}