mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
allow system API command to capture output from the executed command
This commit is contained in:
1 parent
0a8e6129d8
commit
d7a37e9754
4 files changed
+157
-24
No files matched your search
@@ -1256,6 +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();
|
||||
close(fds[0]);
|
||||
dup2(fds[1], STDOUT_FILENO);
|
||||
switch_system(command, SWITCH_TRUE);
|
||||
|
||||
Reference in new issue
Block a user