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 253139e99..79dba9f29 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -101,7 +101,11 @@ atomiciov(ssize_t (*f) (int, const struct iovec *, int), int fd,
101 res = (f) (fd, iov, iovcnt); 101 res = (f) (fd, iov, iovcnt);
102 switch (res) { 102 switch (res) {
103 case -1: 103 case -1:
104#ifdef EWOULDBLOCK
105 if (errno == EINTR || errno == EWOULDBLOCK)
106#else
104 if (errno == EINTR) 107 if (errno == EINTR)
108#endif
105 continue; 109 continue;
106 if (errno == EAGAIN) { 110 if (errno == EAGAIN) {
107 (void)poll(&pfd, 1, -1); 111 (void)poll(&pfd, 1, -1);