mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 07:14:14 +00:00
the threaded one seems to not work using only fork
This commit is contained in:
1 parent
6824871df0
commit
0f6a2bf863
3 files changed
+23
-11
No files matched your search
+1
-1
@@ -1256,7 +1256,7 @@ static int preprocess_exec(const char *cwd, const char *command, int write_fd, i
|
||||
close(fds[0]);
|
||||
waitpid(pid, NULL, 0);
|
||||
} else { /* child */
|
||||
switch_close_extra_files();
|
||||
switch_close_extra_files(fds, 2);
|
||||
close(fds[0]);
|
||||
dup2(fds[1], STDOUT_FILENO);
|
||||
switch_system(command, SWITCH_TRUE);
|
||||
|
||||
Reference in new issue
Block a user