From b28e4a3bbaf1514213d0aefb5675c1a4264c20e5 Mon Sep 17 00:00:00 2001 From: djm Date: Sat, 8 Jul 2000 00:57:08 +0000 Subject: [PATCH] - (djm) Handle EWOULDBLOCK returns from read() and write() in atomicio.c Fix from Marquess, Steve Mr JMLFDC --- ChangeLog | 2 ++ atomicio.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index c2fe2473..be8ba356 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ Lutz Jaenicke - (djm) Fixed undefined variables for OSF SIA. Report from Baars, Henk + - (djm) Handle EWOULDBLOCK returns from read() and write() in atomicio.c + Fix from Marquess, Steve Mr JMLFDC 20000702 - (djm) Fix brace mismatch from Corinna Vinschen diff --git a/atomicio.c b/atomicio.c index 7d9f9340..45da22d3 100644 --- a/atomicio.c +++ b/atomicio.c @@ -46,7 +46,11 @@ atomicio(f, fd, _s, n) res = (f) (fd, s + pos, n - pos); switch (res) { case -1: +#ifdef EWOULDBLOCK + if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) +#else if (errno == EINTR || errno == EAGAIN) +#endif continue; case 0: return (res); -- 2.45.1