mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 04:34:43 +02:00
Disable Application::SetResourceLimits on non-Linux systems
fixes #8178
This commit is contained in:
parent
effb834d3f
commit
b17fc34a84
@ -176,7 +176,7 @@ Application::Ptr Application::GetInstance(void)
|
|||||||
|
|
||||||
void Application::SetResourceLimits(void)
|
void Application::SetResourceLimits(void)
|
||||||
{
|
{
|
||||||
#ifndef _WIN32
|
#ifdef __linux__
|
||||||
rlimit rl;
|
rlimit rl;
|
||||||
|
|
||||||
# ifdef RLIMIT_NOFILE
|
# ifdef RLIMIT_NOFILE
|
||||||
@ -252,7 +252,7 @@ void Application::SetResourceLimits(void)
|
|||||||
# else /* RLIMIT_STACK */
|
# else /* RLIMIT_STACK */
|
||||||
Log(LogNotice, "Application", "System does not support adjusting the resource limit for stack size (RLIMIT_STACK)");
|
Log(LogNotice, "Application", "System does not support adjusting the resource limit for stack size (RLIMIT_STACK)");
|
||||||
# endif /* RLIMIT_STACK */
|
# endif /* RLIMIT_STACK */
|
||||||
#endif /* _WIN32 */
|
#endif /* __linux__ */
|
||||||
}
|
}
|
||||||
|
|
||||||
int Application::GetArgC(void)
|
int Application::GetArgC(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user