[Dovecot] [patch] let valgrind run on login process with GDB=1

Diego Liziero diegoliz at gmail.com
Thu May 1 03:13:21 EEST 2008


Not sure if this should be included in dovecot, just posting if someone
feels like using valgrind.

Diego.

-----
diff -r ba634d2c0ab9 src/master/login-process.c
--- a/src/master/login-process.c        Wed Apr 30 20:18:37 2008 +0300
+++ b/src/master/login-process.c        Thu May 01 00:59:10 2008 +0200
@@ -689,7 +689,8 @@ static pid_t create_login_process(struct
        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 (getenv("GDB") == NULL)
+               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 */


More information about the dovecot mailing list