X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=utils%2Fsmsq.c;h=fa71d76391792f3bcd8a5fe5ac55f88bd0e8cfc6;hp=d24845a54cbc1aac8d8610a90f5a58888be3bf74;hb=0b1df98c19895b0749fd41568bd894b6541e0d76;hpb=fc547b5fa089e43060e56cd03a00e4ad0693a826 diff --git a/utils/smsq.c b/utils/smsq.c index d24845a..fa71d76 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); }