]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3779 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Thu, 22 Dec 2011 00:35:24 +0000 (18:35 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Thu, 22 Dec 2011 00:35:24 +0000 (18:35 -0600)
src/switch_core.c

index 30bf9e64fbb134532772f48597953d988d520c1f..6b3bfbc82d1034bf8ae33a22a2d4dae63b451983 100644 (file)
@@ -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);
        }