From 9abd5c5da508c24246cc16d1b65663141b16d184 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Wed, 21 Dec 2011 18:35:24 -0600 Subject: [PATCH] FS-3779 --resolve --- src/switch_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_core.c b/src/switch_core.c index 30bf9e64fb..6b3bfbc82d 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -2456,7 +2456,7 @@ static int switch_system_fork(const char *cmd, switch_bool_t wait) static int switch_system_fork(const char *cmd, switch_bool_t wait) { - int pid; + int pid, i; char *dcmd = strdup(cmd); switch_core_set_signal_handlers(); @@ -2472,7 +2472,7 @@ static int switch_system_fork(const char *cmd, switch_bool_t wait) switch_close_extra_files(NULL, 0); set_low_priority(); - system(dcmd); + i = system(dcmd); free(dcmd); exit(0); }