]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ensure that the priority is set to 0 on the astcanary thread.
authorKinsey Moore <kmoore@digium.com>
Sun, 24 Jan 2010 17:12:30 +0000 (17:12 +0000)
committerKinsey Moore <kmoore@digium.com>
Sun, 24 Jan 2010 17:12:30 +0000 (17:12 +0000)
This was causing asterisk to exit erroneously while polling to ensure that
it had a proper DAHDI timing source.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@242603 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index 11046f4c6da34dc9a5d1071a3de181014368ce78..0859257f89860961de9397b47179d120a16dfee8 100644 (file)
@@ -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);