[dovecot-cvs] dovecot/src/lib network.c,1.26,1.27

cras at dovecot.org cras at dovecot.org
Sun Jan 9 18:52:33 EET 2005


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

Modified Files:
	network.c 
Log Message:
Use nonblocking connecting for unix sockets.



Index: network.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/network.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- network.c	9 Jan 2005 16:51:06 -0000	1.26
+++ network.c	9 Jan 2005 16:52:30 -0000	1.27
@@ -172,6 +172,8 @@
 	if (fd == -1)
 		return -1;
 
+	net_set_nonblock(fd, TRUE);
+
 	/* connect */
 	ret = connect(fd, (struct sockaddr *) &sa, sizeof(sa));
 	if (ret < 0 && errno != EINPROGRESS) {



More information about the dovecot-cvs mailing list