diff options
author | Sean Bright <sean@malleable.com> | 2008-12-01 23:08:24 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2008-12-01 23:08:24 +0000 |
commit | 0b1df98c19895b0749fd41568bd894b6541e0d76 (patch) | |
tree | 7f21917d2f5969228b6e52dfac5e46a50aae1c7d /utils | |
parent | fc547b5fa089e43060e56cd03a00e4ad0693a826 (diff) |
Pay attention to the return value of system(), even if we basically ignore it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils')
-rw-r--r-- | utils/smsq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/smsq.c b/utils/smsq.c index d24845a54..fa71d7639 100644 --- a/utils/smsq.c +++ b/utils/smsq.c @@ -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); } |