diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-06-25 19:06:53 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-06-25 19:06:53 +1000 |
commit | 9e223240ac65e5662bf4d48945198fba80e9f886 (patch) | |
tree | bc1e3211408a536908ccf9df81bd7044ecc286b5 /atomicio.c | |
parent | ae09cb8a7123416217e88a42c2c0ad04230d5314 (diff) |
- (dtucker) [atomicio.c] Test for EWOULDBLOCK in atomiciov to match
atomicio.
Diffstat (limited to 'atomicio.c')
-rw-r--r-- | atomicio.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |