[Dovecot] [patch] let valgrind run on login process with GDB=1
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 */
On Thu, 2008-05-01 at 02:13 +0200, Diego Liziero wrote:
Not sure if this should be included in dovecot, just posting if someone feels like using valgrind.
Committed: http://hg.dovecot.org/dovecot-1.1/rev/4407ef392711
participants (2)
-
Diego Liziero
-
Timo Sirainen