[dovecot-cvs] dovecot/src/util rawlog.c,1.3,1.4

cras at dovecot.org cras at dovecot.org
Fri Sep 17 18:54:27 EEST 2004


Update of /var/lib/cvs/dovecot/src/util
In directory talvi:/tmp/cvs-serv31236

Modified Files:
	rawlog.c 
Log Message:
don't loop waiting for input, if it didn't come for some reason.



Index: rawlog.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/util/rawlog.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- rawlog.c	23 Aug 2004 14:15:09 -0000	1.3
+++ rawlog.c	17 Sep 2004 15:54:25 -0000	1.4
@@ -40,9 +40,9 @@
 	}
 
 	net_set_nonblock(in, TRUE);
-	do {
-		r_ret = net_receive(in, buf, sizeof(buf));
-	} while (r_ret == 0);
+	r_ret = net_receive(in, buf, sizeof(buf));
+	if (r_ret == 0)
+		return;
 
 	if (r_ret < 0) {
 		if (r_ret == -1)



More information about the dovecot-cvs mailing list