dovecot-1.1: If process's RLIMIT_NOFILE can't be changed, log an...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 18 03:19:02 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/89d85ca00002
changeset: 7676:89d85ca00002
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 18 03:05:17 2008 +0300
description:
If process's RLIMIT_NOFILE can't be changed, log an error but don't die.
Fixes running with Valgrind.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/restrict-process-size.c |    2 +-

diffs (11 lines):

diff -r 4182eb095cb5 -r 89d85ca00002 src/lib/restrict-process-size.c
--- a/src/lib/restrict-process-size.c	Wed Jun 18 02:37:06 2008 +0300
+++ b/src/lib/restrict-process-size.c	Wed Jun 18 03:05:17 2008 +0300
@@ -50,6 +50,6 @@ void restrict_fd_limit(unsigned int coun
 
 	rlim.rlim_cur = rlim.rlim_max = count;
 	if (setrlimit(RLIMIT_NOFILE, &rlim) < 0)
-		i_fatal("setrlimit(RLIMIT_NOFILE, %u): %m", count);
+		i_error("setrlimit(RLIMIT_NOFILE, %u): %m", count);
 #endif
 }


More information about the dovecot-cvs mailing list