mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 00:32:12 -04:00
Use _exit instead of Exit in Application::SetResourceLimits
This commit is contained in:
parent
4d0ee2a7fd
commit
bdb2a15e27
1 changed files with 3 additions and 4 deletions
|
|
@ -227,10 +227,9 @@ void Application::SetResourceLimits(void)
|
|||
|
||||
new_argv[argc + 1] = NULL;
|
||||
|
||||
if (execvp(new_argv[0], new_argv) < 0)
|
||||
perror("execvp");
|
||||
|
||||
Exit(EXIT_FAILURE);
|
||||
(void) execvp(new_argv[0], new_argv);
|
||||
perror("execvp");
|
||||
_exit(EXIT_FAILURE);
|
||||
}
|
||||
# else /* RLIMIT_STACK */
|
||||
Log(LogNotice, "Application", "System does not support adjusting the resource limit for stack size (RLIMIT_STACK)");
|
||||
|
|
|
|||
Loading…
Reference in a new issue