From 11ac93dfa1fcc9d5ae727cb89aa24827206245fb Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 1 May 2006 21:48:30 +0000 Subject: 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 --- asterisk.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'asterisk.c') diff --git a/asterisk.c b/asterisk.c index db5bf122c..e256d3f07 100644 --- a/asterisk.c +++ b/asterisk.c @@ -635,6 +635,8 @@ int ast_safe_system(const char *s) pid = fork(); if (pid == 0) { + if (ast_opt_high_priority) + ast_set_priority(0); /* Close file descriptors and launch system command */ for (x = STDERR_FILENO + 1; x < 4096; x++) close(x); -- cgit v1.2.3