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
commit d3f51ee5c3
Notes: sideshowbarker 2024-07-18 23:58:23 +09:00

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;
}