]> andersk Git - openssh.git/blobdiff - atomicio.c
- (dtucker) [atomicio.c] Test for EWOULDBLOCK in atomiciov to match
[openssh.git] / atomicio.c
index 253139e991c71c82a35fe99f9c1c0f491a452bd2..79dba9f29bd6ec8418b1f3cc508d14b783c03fa9 100644 (file)
@@ -101,7 +101,11 @@ atomiciov(ssize_t (*f) (int, const struct iovec *, int), int fd,
                res = (f) (fd, iov, iovcnt);
                switch (res) {
                case -1:
+#ifdef EWOULDBLOCK
+                       if (errno == EINTR || errno == EWOULDBLOCK)
+#else
                        if (errno == EINTR)
+#endif
                                continue;
                        if (errno == EAGAIN) {
                                (void)poll(&pfd, 1, -1);
This page took 0.095358 seconds and 4 git commands to generate.