mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 18:40:46 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@91077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
if (!lock_info->locks[i].pending)
|
||||||
continue;
|
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;
|
lock = lock_info->locks[i].lock_addr;
|
||||||
|
|
||||||
ast_reentrancy_lock(lock);
|
ast_reentrancy_lock(lock);
|
||||||
|
Reference in New Issue
Block a user