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

@@ -279,6 +279,9 @@ static int launch_script(char *script, char *argv[], int *fds, int *efd, int *op
for (x=STDERR_FILENO + 2;x<1024;x++)
close(x);
/* Don't run AGI scripts with realtime priority -- it causes audio stutter */
ast_set_priority(0);
/* Execute script */
execv(script, argv);
/* Can't use ast_log since FD's are closed */