mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
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
This commit is contained in:
@@ -399,7 +399,9 @@ static void rxqcheck (char *dir, char *queue, char *process)
|
|||||||
setenv ("ud16", tmp, 1);
|
setenv ("ud16", tmp, 1);
|
||||||
}
|
}
|
||||||
/* run the command */
|
/* run the command */
|
||||||
system (process);
|
if (system (process) == -1) {
|
||||||
|
fprintf(stderr, "Failed to fork process '%s'\n", process);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
closedir (d);
|
closedir (d);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user