Merged revisions 24019 via svnmerge from
[asterisk/asterisk.git] / apps / app_zapras.c
index c95f752..d75d2ee 100644 (file)
@@ -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);