diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 21:48:30 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 21:48:30 +0000 |
commit | 11ac93dfa1fcc9d5ae727cb89aa24827206245fb (patch) | |
tree | 317d5d5181b5da608cf7e45510e280defad7fc74 /apps/app_zapras.c | |
parent | 8eb09360b12dee2551da13c354c247c75714d174 (diff) |
Merged revisions 24019 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r24019 | tilghman | 2006-05-01 15:44:24 -0500 (Mon, 01 May 2006) | 2 lines
Bug 6864 - drop realtime priority on ALL external processes
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24053 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_zapras.c')
-rw-r--r-- | apps/app_zapras.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_zapras.c b/apps/app_zapras.c index c95f75238..d75d2ee7c 100644 --- a/apps/app_zapras.c +++ b/apps/app_zapras.c @@ -100,6 +100,10 @@ static pid_t spawn_ras(struct ast_channel *chan, char *args) /* Execute RAS on File handles */ dup2(chan->fds[0], STDIN_FILENO); + /* Drop high priority */ + if (ast_opt_high_priority) + ast_set_priority(0); + /* Close other file descriptors */ for (x=STDERR_FILENO + 1;x<1024;x++) close(x); |