From 377fb3716814e302341347f99cdd3cb6386eaef1 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Fri, 23 Dec 2011 14:54:53 -0600 Subject: [PATCH] FS-3779 --resolve hopefully this is ok --- src/switch_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_core.c b/src/switch_core.c index 3947aaff71..0f301b9cc5 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -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); }