Renice child processes.

Fixes #5237
This commit is contained in:
Gunnar Beutner 2013-11-28 15:15:28 +01:00
parent 31c70fe5ae
commit 4ffc22516a
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ ProcessResult Process::Run(void)
(void) close(fds[0]);
(void) close(fds[1]);
(void) nice(5);
if (icinga2_execvpe(argv[0], argv, envp) < 0) {
perror("execvpe() failed.");
_exit(128);