]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Cleanup: Calculate file descriptor count a bit more correctly.
authorTimo Sirainen <tss@iki.fi>
Thu, 12 Jun 2008 21:36:23 +0000 (00:36 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 12 Jun 2008 21:36:23 +0000 (00:36 +0300)
--HG--
branch : HEAD

src/master/login-process.c

index 49607f57aebcacfa9fc5fb8caa576ef57f9df6e1..8c2c207c5cadf1ff86e26aaa2a0ee04d3a3d42e7 100644 (file)
@@ -686,7 +686,8 @@ static pid_t create_login_process(struct login_group *group)
        }
 
        restrict_process_size(group->set->login_process_size, (unsigned int)-1);
-       fd_limit = 16 + listen_count + ssl_listen_count +
+       /* +16 is just for some extra things the process might want */
+       fd_limit = 16 + cur_fd +
                2 * (group->set->login_process_per_connection ? 1 :
                     group->set->login_max_connections);
 #ifdef DEBUG