aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-27 15:16:56 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-27 15:16:56 +0000
commitf3f66a2d708540ecc25df1dfabbeca73f4f8e360 (patch)
tree456e24244c217a2be8818bdda56793b54cb9b8cf /main/pbx.c
parentd9780475d3d7c30dbdd90f5de56fc26dfd49b528 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@94831 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index ef851706d..145c1be0b 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -2015,7 +2015,6 @@ void ast_hint_state_changed(const char *device)
{
struct ast_hint *hint;
- ast_rdlock_contexts();
AST_LIST_LOCK(&hints);
AST_LIST_TRAVERSE(&hints, hint, list) {
@@ -2053,7 +2052,6 @@ void ast_hint_state_changed(const char *device)
}
AST_LIST_UNLOCK(&hints);
- ast_unlock_contexts();
}
/*! \brief ast_extension_state_add: Add watcher for extension states */