diff options
author | dhubbard <dhubbard@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-05 16:51:17 +0000 |
---|---|---|
committer | dhubbard <dhubbard@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-05 16:51:17 +0000 |
commit | e1af0b32e84b28d190d7addbb4d61fc2578802a3 (patch) | |
tree | 0f8e52624137cae51527a56b5dfaea76d17e5c9c /utils | |
parent | a68a7c75de20df36ad8502ed315bb025722899c3 (diff) |
kill a warning
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@161354 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rw-r--r-- | utils/smsq.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/smsq.c b/utils/smsq.c index 7439504fc..4b52ce7ef 100644 --- a/utils/smsq.c +++ b/utils/smsq.c @@ -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); } |