dovecot: Solaris: Ignore also other errors (EINTR?) if some data...

dovecot at dovecot.org dovecot at dovecot.org
Thu Aug 9 13:39:11 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/3a1ff50a57b7
changeset: 6240:3a1ff50a57b7
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Aug 09 13:39:08 2007 +0300
description:
Solaris: Ignore also other errors (EINTR?) if some data was sent.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib/sendfile-util.c |    4 ++--

diffs (14 lines):

diff -r b24199c8612d -r 3a1ff50a57b7 src/lib/sendfile-util.c
--- 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 @@ ssize_t safe_sendfile(int out_fd, int in
 			/* 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;
 		}


More information about the dovecot-cvs mailing list