[asterisk-commits] dhubbard: branch 1.4 r161354 - /branches/1.4/utils/smsq.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 5 10:51:18 CST 2008


Author: dhubbard
Date: Fri Dec  5 10:51:17 2008
New Revision: 161354

URL: http://svn.digium.com/view/asterisk?view=rev&rev=161354
Log:
kill a warning

Modified:
    branches/1.4/utils/smsq.c

Modified: branches/1.4/utils/smsq.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/utils/smsq.c?view=diff&rev=161354&r1=161353&r2=161354
==============================================================================
--- branches/1.4/utils/smsq.c (original)
+++ branches/1.4/utils/smsq.c Fri Dec  5 10:51:17 2008
@@ -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 @@
             setenv ("ud16", temp, 1);
          }
          /* run the command */
-         system (process);
+         if (system (process) == -1) {
+			fprintf(stderr, "Failed to fork process '%s'\n", process);
+		}
       }
    closedir (d);
 }




More information about the asterisk-commits mailing list