Now that the contexts lock is a read/write lock, it should not be locked here

in ast_hint_state_changed().  This makes it get locked recursively which now
causes a deadlock.
(closes issue #11080, thanks to callguy for the access to a deadlocked machine)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@94831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Russell Bryant 18 years ago
parent 67df6e008d
commit c03ccc41f2

@ -2015,7 +2015,6 @@ void ast_hint_state_changed(const char *device)
{ {
struct ast_hint *hint; struct ast_hint *hint;
ast_rdlock_contexts();
AST_LIST_LOCK(&hints); AST_LIST_LOCK(&hints);
AST_LIST_TRAVERSE(&hints, hint, list) { AST_LIST_TRAVERSE(&hints, hint, list) {
@ -2053,7 +2052,6 @@ void ast_hint_state_changed(const char *device)
} }
AST_LIST_UNLOCK(&hints); AST_LIST_UNLOCK(&hints);
ast_unlock_contexts();
} }
/*! \brief ast_extension_state_add: Add watcher for extension states */ /*! \brief ast_extension_state_add: Add watcher for extension states */

Loading…
Cancel
Save