From fd5e483a499d8b4986128e9be7bcb70cc8315c8a Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Sun, 3 Feb 2008 11:55:24 +0100 Subject: [PATCH] Warn only when open files limit is smaller that 256. --- src/bip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bip.c b/src/bip.c index 6c5245c..08a4eff 100644 --- a/src/bip.c +++ b/src/bip.c @@ -1110,7 +1110,7 @@ void check_rlimits() mylog(LOG_ERROR, "getrlimit(): failed with %s", strerror(errno)); } else { - if (lt.rlim_max != RLIM_INFINITY) { + if (lt.rlim_max != RLIM_INFINITY && lt.rlim_max < 256) { mylog(LOG_WARN, "opened files count rlimit " "active, bip will not be allowed to open more " "than %d files at a time", (int)lt.rlim_max);