commit | f2fdbe5540c3954bd62a6ec6d701132a65110d27 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Sat Jul 08 10:57:08 2000 +1000 |
committer | Damien Miller <djm@mindrot.org> | Sat Jul 08 10:57:08 2000 +1000 |
tree | ea12f6af9f07a863df085715f25b263f39026513 | |
parent | fe668e4b1636aed7d1adb7c0aaaa07a9b6277421 [diff] [blame] |
- (djm) Handle EWOULDBLOCK returns from read() and write() in atomicio.c Fix from Marquess, Steve Mr JMLFDC <Steve.Marquess@DET.AMEDD.ARMY.MIL>
diff --git a/atomicio.c b/atomicio.c index 7d9f934..45da22d 100644 --- a/atomicio.c +++ b/atomicio.c
@@ -46,7 +46,11 @@ 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);