[evolution-patches] evolution-exchange patch for bug #179545 (b.g.o bug #344196)




-- 
Jeffrey Stedfast
Evolution Hacker - Novell, Inc.
fejj novell com  - www.novell.com
Index: camel/camel-stub-marshal.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/camel/camel-stub-marshal.c,v
retrieving revision 1.2.8.3
diff -u -r1.2.8.3 camel-stub-marshal.c
--- camel/camel-stub-marshal.c	15 Jun 2006 20:35:34 -0000	1.2.8.3
+++ camel/camel-stub-marshal.c	23 Jun 2006 14:25:45 -0000
@@ -90,9 +90,10 @@
 	ssize_t n;
 	
 	do {
-		if ((n = camel_read (marshal->fd, buf + nread, len - nread)) > 0)
-			nread += n;
-	} while (n && nread < len && errno != EINTR);
+		if ((n = camel_read (marshal->fd, buf + nread, len - nread)) <= 0)
+			break;
+		nread += n;
+	} while (nread < len);
 	
 	if (nread < len) {
 		close (marshal->fd);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]