]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Don't restrict login process fd limits when running with GDB=1.
authorTimo Sirainen <tss@iki.fi>
Sun, 4 May 2008 00:22:49 +0000 (03:22 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 4 May 2008 00:22:49 +0000 (03:22 +0300)
--HG--
branch : HEAD

src/master/login-process.c

index 7ceb353566d9f15623279ffed131dfc9f42d3b28..53d2992da554f46600ca6e336416574e74e5c2e9 100644 (file)
@@ -689,7 +689,8 @@ static pid_t create_login_process(struct login_group *group)
        fd_limit = 16 + listen_count + ssl_listen_count +
                2 * (group->set->login_process_per_connection ? 1 :
                     group->set->login_max_connections);
-       restrict_fd_limit(fd_limit);
+       if (!gdb)
+               restrict_fd_limit(fd_limit);
 
        /* make sure we don't leak syslog fd, but do it last so that
           any errors above will be logged */