diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-05 00:49:19 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-05 00:49:19 +0000 |
commit | 75f71be83866977c0d8a0ef7082cb98f3b3cb346 (patch) | |
tree | a171a356eb9f5cfeb137fa706078ff4a3d811b4b /main/utils.c | |
parent | 6a7486f4e37721859c5bfa7f3b8ba3e6c9d10059 (diff) |
Merged revisions 91074 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91074 | russell | 2007-12-04 18:48:47 -0600 (Tue, 04 Dec 2007) | 4 lines
When DEBUG_THREADS is enabled, we only have the details about who is holding
a lock that we are waiting on for a mutex, not rwlocks. This should fix the
problem where people have reported "core show locks" crashing sometimes.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91077 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/utils.c b/main/utils.c index 5d6466175..949ed10d1 100644 --- a/main/utils.c +++ b/main/utils.c @@ -756,6 +756,10 @@ static char *handle_show_locks(struct ast_cli_entry *e, int cmd, struct ast_cli_ if (!lock_info->locks[i].pending) continue; + /* We only have further details for mutexes right now */ + if (lock_info->locks[i].type != AST_MUTEX) + continue; + lock = lock_info->locks[i].lock_addr; ast_reentrancy_lock(lock); |