dovecot-1.2: If process's RLIMIT_NOFILE can't be changed, log an...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jul 20 15:45:43 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/7513ad244f0f
changeset: 8013:7513ad244f0f
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 (12 lines):
diff -r 164bdad216b8 -r 7513ad244f0f src/lib/restrict-process-size.c
--- a/src/lib/restrict-process-size.c Sun Jul 20 15:24:05 2008 +0300
+++ b/src/lib/restrict-process-size.c Wed Jun 18 03:05:17 2008 +0300
@@ -46,7 +46,7 @@ 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