Fix deadlock when executing CLI "pri show channels" and "ss7 show channels" commands.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 30 May 2012 17:50:38 +0000 (17:50 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 30 May 2012 17:50:38 +0000 (17:50 +0000)
commite65ad34770a17b2e38ee497a156ec396e6af8606
treebac46e9116d1e84afa86373ae3cbd9932029ddb3
parent77f5e86e4d6f487bf13b9db255d0470c89ec22b9
Fix deadlock when executing CLI "pri show channels" and  "ss7 show channels" commands.

* Fix sig_pri_lock_owner() to avoid deadlock properly.

* Code pri_grab() better.

* Fix sig_ss7_lock_owner() to avoid deadlock properly.

* Code ss7_grab() better.

(closes issue ASTERISK-19854)
Reported by: Jaxon
Patches:
      jira_asterisk_19854_v1.8.6.patch (license #5621) patch uploaded by rmudgett (Modified to do the same thing to sig_ss7)
Tested by: Jaxon
........

Merged revisions 367976 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 367978 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@367979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/sig_pri.c
channels/sig_ss7.c