diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 20:44:24 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 20:44:24 +0000 |
commit | d9e331795d943442bafe16e25cd75d907dc4c397 (patch) | |
tree | c7a64ddceb7f675317866970f52564577e2a6857 /apps/app_festival.c | |
parent | 7c526c2b5d88a1a2b5d0f1f0be77ceef20dad0cf (diff) |
Bug 6864 - drop realtime priority on ALL external processes
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@24019 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_festival.c')
-rw-r--r-- | apps/app_festival.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c index d3bd1e9b9..de1830fd2 100644 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -53,6 +53,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/config.h" #include "asterisk/utils.h" #include "asterisk/lock.h" +#include "asterisk/options.h" #define FESTIVAL_CONFIG "festival.conf" @@ -136,6 +137,9 @@ static int send_waveform_to_fd(char *waveform, int length, int fd) { if (x != fd) close(x); } + if (option_highpriority) + ast_set_priority(0); + /*IAS */ #ifdef __PPC__ for( x=0; x<length; x+=2) |