]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
kill a warning
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Fri, 5 Dec 2008 16:51:17 +0000 (16:51 +0000)
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Fri, 5 Dec 2008 16:51:17 +0000 (16:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@161354 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/smsq.c

index 7439504fc635d52f8c6da193e3bb767f1887796b..4b52ce7ef4f991715aa908844cd5c807a76091c2 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <time.h>
+#include <errno.h>
 
 #include <asterisk/compat.h>
 #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);
 }