From: Kinsey Moore Date: Sun, 24 Jan 2010 17:12:30 +0000 (+0000) Subject: Ensure that the priority is set to 0 on the astcanary thread. X-Git-Tag: 1.6.0.23~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a44068ee50c5a9b3eaa1ad119857fc7c06730a2;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@242603 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/asterisk.c b/main/asterisk.c index 11046f4c6d..0859257f89 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);