mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Use _exit instead of Exit in Application::SetResourceLimits
This commit is contained in:
parent
4d0ee2a7fd
commit
bdb2a15e27
@ -227,10 +227,9 @@ void Application::SetResourceLimits(void)
|
|||||||
|
|
||||||
new_argv[argc + 1] = NULL;
|
new_argv[argc + 1] = NULL;
|
||||||
|
|
||||||
if (execvp(new_argv[0], new_argv) < 0)
|
(void) execvp(new_argv[0], new_argv);
|
||||||
perror("execvp");
|
perror("execvp");
|
||||||
|
_exit(EXIT_FAILURE);
|
||||||
Exit(EXIT_FAILURE);
|
|
||||||
}
|
}
|
||||||
# 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)");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user