summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/atomicio.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/atomicio.c')
-rw-r--r--crypto/openssh/atomicio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/openssh/atomicio.c b/crypto/openssh/atomicio.c
index fd7d508..47161eb 100644
--- a/crypto/openssh/atomicio.c
+++ b/crypto/openssh/atomicio.c
@@ -45,7 +45,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);
OpenPOWER on IntegriCloud