Fix logger deadlock on Asterisk shutdown.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 30 Mar 2012 21:38:16 +0000 (21:38 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 30 Mar 2012 21:38:16 +0000 (21:38 +0000)
commit6a540e908774d2c942f1c20ac2dd7c66b3f09cf0
tree225fa5fa38124fc9c1a48c7c3c01e12382d08d45
parent314d4593174a561ab2ae761ff17262098a54ee9d
Fix logger deadlock on Asterisk shutdown.

The logger_thread() had an exit path that failed to release the logmsgs
list lock.

* Make logger_thread() exit path unlock the logmsgs list lock.

* Made ast_log() not queue any messages to the logmsgs list if the
close_logger_thread flag is set.

(issue ASTERISK-19463)
Reported by: Matt Jordan
........

Merged revisions 360933 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 360934 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@360935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/logger.c