From: Jeff Lenk Date: Thu, 22 Dec 2011 00:35:24 +0000 (-0600) Subject: FS-3779 --resolve X-Git-Tag: v1.2-rc1~19^2^2~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9abd5c5da508c24246cc16d1b65663141b16d184;p=thirdparty%2Ffreeswitch.git FS-3779 --resolve --- 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); }