Use _exit instead of Exit in Application::SetResourceLimits

This commit is contained in:
Gunnar Beutner 2015-03-02 17:19:41 +01:00
parent 4d0ee2a7fd
commit bdb2a15e27
1 changed files with 3 additions and 4 deletions

View File

@ -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)");