summaryrefslogtreecommitdiff
path: root/atomicio.c
diff options
context:
space:
mode:
Diffstat (limited to 'atomicio.c')
-rw-r--r--atomicio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/atomicio.c b/atomicio.c
index 7d9f9340c..45da22d3b 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -46,7 +46,11 @@ atomicio(f, fd, _s, n)
46 res = (f) (fd, s + pos, n - pos); 46 res = (f) (fd, s + pos, n - pos);
47 switch (res) { 47 switch (res) {
48 case -1: 48 case -1:
49#ifdef EWOULDBLOCK
50 if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK)
51#else
49 if (errno == EINTR || errno == EAGAIN) 52 if (errno == EINTR || errno == EAGAIN)
53#endif
50 continue; 54 continue;
51 case 0: 55 case 0:
52 return (res); 56 return (res);