From 9e223240ac65e5662bf4d48945198fba80e9f886 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 25 Jun 2007 19:06:53 +1000 Subject: - (dtucker) [atomicio.c] Test for EWOULDBLOCK in atomiciov to match atomicio. --- atomicio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'atomicio.c') 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, 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); -- cgit v1.2.3