aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
diff options
context:
space:
mode:
authorkmoore <kmoore@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-24 17:12:30 +0000
committerkmoore <kmoore@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-24 17:12:30 +0000
commita953d24693d24db8f15f2cfc680ad184b1b0b065 (patch)
treedc3db10c8620b13d5f6de985cd1e7b1257fc5c0a /main/asterisk.c
parentc55dccb2d50c7787779a4653cd1001cd82d764ef (diff)
Ensure that the priority is set to 0 on the astcanary thread.
This was causing asterisk to exit erroneously while polling to ensure that it had a proper DAHDI timing source. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@242603 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 11046f4c6..0859257f8 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -3315,6 +3315,7 @@ int main(int argc, char *argv[])
for (fd = 1; fd < 100; fd++) {
close(fd);
}
+ ast_set_priority(0);
snprintf(ppid, sizeof(ppid), "%d", (int) getpid());
execlp("astcanary", "astcanary", canary_filename, ppid, (char *)NULL);