[dovecot-cvs] dovecot/src/login-common main.c,1.43,1.44

tss at dovecot.org tss at dovecot.org
Sun Mar 18 04:01:06 EET 2007


Update of /var/lib/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv11515/login-common

Modified Files:
	main.c 
Log Message:
net_listen_unix() API changed a bit. -1 is now returned for errors that can
be ignored (remote closed the socket) and -2 for everything else.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/main.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- main.c	8 Mar 2007 22:07:35 -0000	1.43
+++ main.c	18 Mar 2007 02:01:01 -0000	1.44
@@ -73,7 +73,7 @@
 	fd = net_accept(LOGIN_LISTEN_FD, &remote_ip, &remote_port);
 	if (fd < 0) {
 		if (fd < -1)
-			i_fatal("accept() failed: %m");
+			i_error("accept() failed: %m");
 		return;
 	}
 
@@ -103,7 +103,7 @@
 	fd = net_accept(LOGIN_SSL_LISTEN_FD, &remote_ip, &remote_port);
 	if (fd < 0) {
 		if (fd < -1)
-			i_fatal("accept() failed: %m");
+			i_error("accept() failed: %m");
 		return;
 	}
 



More information about the dovecot-cvs mailing list