From afd7abe860984624d27b8c361fc0a1d0789764cb Mon Sep 17 00:00:00 2001 From: Adrian Muzyka Date: Fri, 7 Jun 2024 07:37:09 +0000 Subject: [PATCH] Continue read from sock on EINTR error --- memcr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memcr.c b/memcr.c index f5ad2f7..b66ffbb 100644 --- a/memcr.c +++ b/memcr.c @@ -689,6 +689,8 @@ static int __read(int fd, void *buf, size_t count, int (*check_peer_ok)(void), i continue; break; + } else if (errno == EINTR) { + continue; } if (silent == FALSE)