From cdf236d01b16e12490d4cc7c5e27cf1e31a72b30 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Nov 2018 10:12:05 +0530 Subject: [PATCH] Fix #1161 --- kitty/child-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 5460cd716..5299a2e7e 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -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; }