]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager: Protect data structures during shutdown.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 24 Jan 2014 18:18:58 +0000 (18:18 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 24 Jan 2014 18:18:58 +0000 (18:18 +0000)
commit88686e2c08a4b06b04a40ba321b2fb63aa27183e
treecda4a253bba840153e4bd08de1995906bb61fe51
parentee5ea38fc3a782533f53a25adcbfb316351be2e8
manager: Protect data structures during shutdown.

Occasionally, the manager module would get an "INTERNAL_OBJ: bad magic
number" error on a "core restart gracefully" command if an AMI connection
is established.

* Added ao2_global_obj protection to the sessions global container.

* Fixed the order of unreferencing a session object in session_destroy().

* Removed unnecessary container traversals of the white/black filters
during session_destructor().

(closes issue AST-1242)
Reported by: Guenther Kelleter

Review: https://reviewboard.asterisk.org/r/3144/
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/11.2@406347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c