]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3779 --resolve hopefully this is ok
authorJeff Lenk <jeff@jefflenk.com>
Fri, 23 Dec 2011 20:54:53 +0000 (14:54 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 23 Dec 2011 20:54:53 +0000 (14:54 -0600)
src/switch_core.c

index 3947aaff7191245c723bee997870b793d1bbde72..0f301b9cc5b30f17664723ba6cd23db89b9ffaa4 100644 (file)
@@ -2473,7 +2473,9 @@ static int switch_system_fork(const char *cmd, switch_bool_t wait)
                switch_close_extra_files(NULL, 0);
                
                set_low_priority();
-               system(dcmd);
+               if (system(dcmd) == -1) {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to execute because of a command error : %s\n", dcmd);
+               }
                free(dcmd);
                exit(0);
        }