mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-12 14:24:13 +00:00
wrap fork so we can drop priority in child processes
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user