From a1ed759b1ce08c7a8567a6e8dc4f62fa197ba632 Mon Sep 17 00:00:00 2001
From: Ken Rice <krice@freeswitch.org>
Date: Tue, 27 Mar 2012 14:11:41 -0500
Subject: [PATCH] try to make compiler -Werror hush

---
 libs/esl/ivrd.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libs/esl/ivrd.c b/libs/esl/ivrd.c
index 66f6908d5d..40e512e216 100644
--- a/libs/esl/ivrd.c
+++ b/libs/esl/ivrd.c
@@ -60,7 +60,9 @@ static void mycallback(esl_socket_t server_sock, esl_socket_t client_sock, struc
 		return;
 	}
 
-	system(path);
+	if(system(path)) {
+		 esl_log(ESL_LOG_ERROR, "System Call Failed! [%s]\n", strerror(errno));
+	}
 	esl_disconnect(&handle);
 	
 }