From: Dwayne M. Hubbard Date: Fri, 5 Dec 2008 16:51:17 +0000 (+0000) Subject: kill a warning X-Git-Tag: 1.4.23-rc3~3^2~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca75782a960be18c2c1642184c7bd54f994fd1f5;p=thirdparty%2Fasterisk.git kill a warning git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@161354 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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); }