wrap fork so we can drop priority in child processes

This commit is contained in:
Anthony Minessale committed 2012-10-01 13:38:45 -05:00
1 parent 0995d133a6
commit 52eff9451c
8 files changed
+31 -11

No files matched your search

@@ -108,7 +108,7 @@ static switch_status_t shell_stream_file_open(switch_file_handle_t *handle, cons
if (pipe(context->fds)) {
goto error;
} else { /* good to go */
context->pid = fork();
context->pid = switch_fork();
if (context->pid < 0) { /* ok maybe not */
goto error;