mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 12:18:56 +00:00
LibLine: It's okay to be interrupted while reading the DSR response
Fixes #4855.
This commit is contained in:
parent
9523bcbfe1
commit
d3f51ee5c3
Notes:
sideshowbarker
2024-07-18 23:58:23 +09:00
Author: https://github.com/alimpfard
Commit: d3f51ee5c3
Pull-request: https://github.com/SerenityOS/serenity/pull/4839
Reviewed-by: https://github.com/tomuta
1 changed files with 1 additions and 1 deletions
|
@ -1540,7 +1540,7 @@ Vector<size_t, 2> Editor::vt_dsr()
|
||||||
do {
|
do {
|
||||||
auto nread = read(0, buf + length, 16 - length);
|
auto nread = read(0, buf + length, 16 - length);
|
||||||
if (nread < 0) {
|
if (nread < 0) {
|
||||||
if (errno == 0) {
|
if (errno == 0 || errno == EINTR) {
|
||||||
// ????
|
// ????
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue