FS-11505: [core] System call with output capture on Linux and Windows without fork. Add switch_core test.

This commit is contained in:
Andrey Volk
2018-11-06 14:52:55 +04:00
committed by Chris Rienzo
parent 18940d13f1
commit 97f42d429f
7 changed files with 331 additions and 47 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ static void preprocess_exec_set(char *keyval)
if (key && val) {
switch_stream_handle_t exec_result = { 0 };
SWITCH_STANDARD_STREAM(exec_result);
if (switch_stream_system_fork(val, &exec_result) == 0) {
if (switch_stream_system(val, &exec_result) == 0) {
if (!zstr(exec_result.data)) {
char *tmp = (char *) exec_result.data;
tmp = &tmp[strlen(tmp)-1];