[dovecot-cvs] dovecot/src/master auth-process.c,1.74,1.75
cras at dovecot.org
cras at dovecot.org
Sun Jan 9 21:09:59 EET 2005
Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv32724
Modified Files:
auth-process.c
Log Message:
Don't send balancer listener fd to auth workers.
Index: auth-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/auth-process.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- auth-process.c 9 Jan 2005 16:54:49 -0000 1.74
+++ auth-process.c 9 Jan 2005 19:09:57 -0000 1.75
@@ -460,10 +460,13 @@
child_process_init_env();
- i_assert(group->balancer_listen_fd != 3);
- if (group->listen_fd != 3) {
- if (dup2(group->listen_fd, 3) < 0)
- i_fatal("dup2() failed: %m");
+ if (!balancer_worker) {
+ i_assert(group->balancer_listen_fd != 3);
+ if (group->listen_fd != 3) {
+ if (dup2(group->listen_fd, 3) < 0)
+ i_fatal("dup2() failed: %m");
+ }
+ fd_close_on_exec(3, FALSE);
}
if (balancer) {
@@ -474,7 +477,7 @@
fd_close_on_exec(4, FALSE);
}
- for (i = 0; i <= 3; i++)
+ for (i = 0; i <= 2; i++)
fd_close_on_exec(i, FALSE);
/* setup access environment */
More information about the dovecot-cvs
mailing list