Pay attention to the return value of system(), even if we basically ignore it.
[asterisk/asterisk.git] / utils / smsq.c
index d24845a..fa71d76 100644 (file)
@@ -399,7 +399,9 @@ static void rxqcheck (char *dir, char *queue, char *process)
             setenv ("ud16", tmp, 1);
          }
          /* run the command */
-         system (process);
+         if (system (process) == -1) {
+            fprintf(stderr, "Failed to fork process '%s'\n", process);
+         }
       }
    closedir (d);
 }