Warn only when open files limit is smaller that 256.
This commit is contained in:
parent
b024221cec
commit
fd5e483a49
@ -1110,7 +1110,7 @@ void check_rlimits()
|
|||||||
mylog(LOG_ERROR, "getrlimit(): failed with %s",
|
mylog(LOG_ERROR, "getrlimit(): failed with %s",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
} else {
|
} else {
|
||||||
if (lt.rlim_max != RLIM_INFINITY) {
|
if (lt.rlim_max != RLIM_INFINITY && lt.rlim_max < 256) {
|
||||||
mylog(LOG_WARN, "opened files count rlimit "
|
mylog(LOG_WARN, "opened files count rlimit "
|
||||||
"active, bip will not be allowed to open more "
|
"active, bip will not be allowed to open more "
|
||||||
"than %d files at a time", (int)lt.rlim_max);
|
"than %d files at a time", (int)lt.rlim_max);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user