[dovecot-cvs] dovecot/src/auth main.c,1.37,1.38

cras at dovecot.org cras at dovecot.org
Sun Jan 9 18:51:06 EET 2005


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

Modified Files:
	main.c 
Log Message:
Added backlog parameter for net_listen*().



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/main.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- main.c	9 Jan 2005 00:49:18 -0000	1.37
+++ main.c	9 Jan 2005 16:51:03 -0000	1.38
@@ -79,7 +79,7 @@
 	return gr->gr_gid;
 }
 
-static int create_unix_listener(const char *env)
+static int create_unix_listener(const char *env, int backlog)
 {
 	const char *path, *mode, *user, *group;
 	mode_t old_umask;
@@ -103,7 +103,7 @@
 
 	old_umask = umask(mask);
 	for (i = 0; i < 5; i++) {
-		fd = net_listen_unix(path);
+		fd = net_listen_unix(path, backlog);
 		if (fd != -1)
 			break;
 
@@ -149,9 +149,9 @@
 		}
 
 		str = t_strdup_printf("AUTH_%u", i);
-		client_fd = create_unix_listener(str);
+		client_fd = create_unix_listener(str, 16);
 		str = t_strdup_printf("AUTH_%u_MASTER", i);
-		master_fd = create_unix_listener(str);
+		master_fd = create_unix_listener(str, 1);
 
 		master = auth_master_connection_create(auth, -1);
 		if (master_fd != -1) {



More information about the dovecot-cvs mailing list