aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-01 20:44:24 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-01 20:44:24 +0000
commitd9e331795d943442bafe16e25cd75d907dc4c397 (patch)
treec7a64ddceb7f675317866970f52564577e2a6857 /asterisk.c
parent7c526c2b5d88a1a2b5d0f1f0be77ceef20dad0cf (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 'asterisk.c')
-rw-r--r--asterisk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c
index 5e1423e86..c62442d09 100644
--- a/asterisk.c
+++ b/asterisk.c
@@ -443,6 +443,8 @@ int ast_safe_system(const char *s)
pid = fork();
if (pid == 0) {
+ if (option_highpriority)
+ ast_set_priority(0);
/* Close file descriptors and launch system command */
for (x = STDERR_FILENO + 1; x < 4096; x++)
close(x);