]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager: Protect data structures during shutdown.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 24 Jan 2014 18:28:16 +0000 (18:28 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 24 Jan 2014 18:28:16 +0000 (18:28 +0000)
commit05086aa86565b4099faec793f5fb59a5e9744f06
tree20dc9117079263da619f735bd1c391d0a04acf03
parent505d1095a3a8f8d681d84336769e4a39a1f3d6db
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.6@406358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c