mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
FS-11505: [core] System call with output capture on Linux and Windows without fork. Add switch_core test.
This commit is contained in:
committed by
Chris Rienzo
parent
18940d13f1
commit
97f42d429f
+1
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user