From d9e331795d943442bafe16e25cd75d907dc4c397 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 1 May 2006 20:44:24 +0000 Subject: 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 --- asterisk.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'asterisk.c') 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); -- cgit v1.2.3