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_mp3.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_mp3.c')
-rw-r--r-- | apps/app_mp3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_mp3.c b/apps/app_mp3.c index ee78840ec..31fc32096 100644 --- a/apps/app_mp3.c +++ b/apps/app_mp3.c @@ -43,6 +43,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/pbx.h" #include "asterisk/module.h" #include "asterisk/translate.h" +#include "asterisk/options.h" #define LOCAL_MPG_123 "/usr/local/bin/mpg123" #define MPG_123 "/usr/bin/mpg123" @@ -71,6 +72,8 @@ static int mp3play(char *filename, int fd) ast_log(LOG_WARNING, "Fork failed\n"); if (res) return res; + if (option_highpriority) + ast_set_priority(0); dup2(fd, STDOUT_FILENO); for (x=0;x<256;x++) { if (x != STDOUT_FILENO) |