mirror of https://github.com/Icinga/icinga2.git
parent
41d4ba169f
commit
b2ec194a82
|
@ -121,9 +121,9 @@ void Application::SetResourceLimits(void)
|
|||
rl.rlim_max = rl.rlim_cur;
|
||||
|
||||
if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
|
||||
Log(LogCritical, "base", "Could not adjust resource limit for open file handles (RLIMIT_NOFILE)");
|
||||
Log(LogDebug, "base", "Could not adjust resource limit for open file handles (RLIMIT_NOFILE)");
|
||||
# else /* RLIMIT_NOFILE */
|
||||
Log(LogCritical, "base", "System does not support adjusting the resource limit for open file handles (RLIMIT_NOFILE)");
|
||||
Log(LogDebug, "base", "System does not support adjusting the resource limit for open file handles (RLIMIT_NOFILE)");
|
||||
# endif /* RLIMIT_NOFILE */
|
||||
|
||||
# ifdef RLIMIT_NPROC
|
||||
|
@ -131,9 +131,9 @@ void Application::SetResourceLimits(void)
|
|||
rl.rlim_max = rl.rlim_cur;
|
||||
|
||||
if (setrlimit(RLIMIT_NPROC, &rl) < 0)
|
||||
Log(LogCritical, "base", "Could not adjust resource limit for number of processes (RLIMIT_NPROC)");
|
||||
Log(LogDebug, "base", "Could not adjust resource limit for number of processes (RLIMIT_NPROC)");
|
||||
# else /* RLIMIT_NPROC */
|
||||
Log(LogCritical, "base", "System does not support adjusting the resource limit for number of processes (RLIMIT_NPROC)");
|
||||
Log(LogDebug, "base", "System does not support adjusting the resource limit for number of processes (RLIMIT_NPROC)");
|
||||
# endif /* RLIMIT_NPROC */
|
||||
#endif /* _WIN32 */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue