[svn-commits] seanbright: trunk r160170 - /trunk/utils/smsq.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Dec 1 17:08:24 CST 2008
Author: seanbright
Date: Mon Dec 1 17:08:24 2008
New Revision: 160170
URL: http://svn.digium.com/view/asterisk?view=rev&rev=160170
Log:
Pay attention to the return value of system(), even if we basically ignore it.
Modified:
trunk/utils/smsq.c
Modified: trunk/utils/smsq.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/smsq.c?view=diff&rev=160170&r1=160169&r2=160170
==============================================================================
--- trunk/utils/smsq.c (original)
+++ trunk/utils/smsq.c Mon Dec 1 17:08:24 2008
@@ -399,7 +399,9 @@
setenv ("ud16", tmp, 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 svn-commits
mailing list