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

@@ -262,7 +262,7 @@ static void daemonize(int do_wait)
}
}
pid = fork();
pid = switch_fork();
switch (pid) {
case 0: /* child process */