wrap fork so we can drop priority in child processes

This commit is contained in:
Anthony Minessale
2012-10-01 12:14:30 -05:00
parent 0995d133a6
commit 52eff9451c
8 changed files with 31 additions and 11 deletions

View File

@@ -1238,7 +1238,7 @@ static FILE *preprocess_exec(const char *cwd, const char *command, FILE *write_f
if (pipe(fds)) {
goto end;
} else { /* good to go */
pid = fork();
pid = switch_fork();
if (pid < 0) { /* ok maybe not */
close(fds[0]);