This commit is contained in:
Kovid Goyal 2018-11-21 10:12:05 +05:30
parent f54efb7886
commit cdf236d01b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -874,7 +874,7 @@ read_bytes(int fd, Screen *screen) {
while(true) {
len = read(fd, screen->read_buf + orig_sz, available_buffer_space);
if (len < 0) {
if (errno == EINTR) continue;
if (errno == EINTR || errno == EAGAIN) continue;
if (errno != EIO) perror("Call to read() from child fd failed");
return false;
}