mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user