From ca75782a960be18c2c1642184c7bd54f994fd1f5 Mon Sep 17 00:00:00 2001 From: "Dwayne M. Hubbard" Date: Fri, 5 Dec 2008 16:51:17 +0000 Subject: [PATCH] kill a warning git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@161354 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- utils/smsq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/smsq.c b/utils/smsq.c index 7439504fc6..4b52ce7ef4 100644 --- a/utils/smsq.c +++ b/utils/smsq.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #ifdef SOLARIS @@ -394,7 +395,9 @@ static void rxqcheck (char *dir, char *queue, char *process) setenv ("ud16", temp, 1); } /* run the command */ - system (process); + if (system (process) == -1) { + fprintf(stderr, "Failed to fork process '%s'\n", process); + } } closedir (d); }