mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 07:14:14 +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
+1
-1
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user