Cleanup ast_run_atexits() atexits list.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 3 Dec 2012 23:00:08 +0000 (23:00 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 3 Dec 2012 23:00:08 +0000 (23:00 +0000)
commit83c5fac6b1cbbd1160506c9e2d8fb8d2b4c96f42
tree44c85736a556a7b5ff57d03a0dbd941db9fe1f06
parent77561124b04c8cfb56f18063f8ffe49a573e5ad0
Cleanup ast_run_atexits() atexits list.

* Convert atexits list to a mutex instead of a rd/wr lock.  The lock is
only write locked.

* Move CLI verbose Asterisk ending message to where AMI message is output
in really_quit() to avoid further surprises about using stuff already
shutdown.

(issue ASTERISK-20649)
Reported by: Corey Farrell
........

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

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

Merged revisions 377167 from http://svn.asterisk.org/svn/asterisk/branches/11

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