projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc547b5
)
Pay attention to the return value of system(), even if we basically ignore it.
author
Sean Bright
<sean@malleable.com>
Mon, 1 Dec 2008 23:08:24 +0000
(23:08 +0000)
committer
Sean Bright
<sean@malleable.com>
Mon, 1 Dec 2008 23:08:24 +0000
(23:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160170
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
utils/smsq.c
patch
|
blob
|
history
diff --git
a/utils/smsq.c
b/utils/smsq.c
index
d24845a
..
fa71d76
100644
(file)
--- 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);
}