changeset 6240:3a1ff50a57b7 HEAD

Solaris: Ignore also other errors (EINTR?) if some data was sent.
author Timo Sirainen <tss@iki.fi>
date Thu, 09 Aug 2007 13:39:08 +0300
parents b24199c8612d
children 17e056f924cb
files src/lib/sendfile-util.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/sendfile-util.c	Thu Aug 09 13:36:32 2007 +0300
+++ b/src/lib/sendfile-util.c	Thu Aug 09 13:39:08 2007 +0300
@@ -120,8 +120,8 @@
 			/* not supported, return Linux-like EINVAL so caller
 			   sees only consistent errnos. */
 			errno = EINVAL;
-		} else if (errno == EAGAIN && s_offset != (off_t)*offset) {
-			/* some data was sent, return them */
+		} else if (s_offset != (off_t)*offset) {
+			/* some data was sent, return it */
 			i_assert(s_offset > (off_t)*offset);
 			ret = s_offset - (off_t)*offset;
 		}