make sure realtime/high scheduling priority is relinquished before executing an AGI script (issue #4930)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-08-23 01:30:22 +00:00
parent dde23d5d0f
commit 2cde73fddb
3 changed files with 7 additions and 2 deletions

View File

@@ -674,7 +674,7 @@ static void set_icon(char *text)
fprintf(stdout, "\033]1;%s\007", text);
}
static int set_priority(int pri)
int ast_set_priority(int pri)
{
struct sched_param sched;
memset(&sched, 0, sizeof(sched));
@@ -1940,7 +1940,7 @@ int main(int argc, char *argv[])
ast_verbose("[ Reading Master Configuration ]");
ast_readconfig();
if (set_priority(option_highpriority)) {
if (ast_set_priority(option_highpriority)) {
exit(1);
}