chan_sip: Fix deadlock of monlock between unload_module and do_monitor
authorCorey Farrell <git@cfware.com>
Fri, 7 Mar 2014 22:56:15 +0000 (22:56 +0000)
committerCorey Farrell <git@cfware.com>
Fri, 7 Mar 2014 22:56:15 +0000 (22:56 +0000)
commit0291965f79a17a4b515063c158a764c23db4ddb7
tree921b23c01469c964796fc4b670fc4902a96a6294
parent2507179fecb563b22da0dac8ee78b9da5e380414
chan_sip: Fix deadlock of monlock between unload_module and do_monitor

Release monlock before calling pthread_join.  This ensures do_monitor
cannot freeze by locking monlock during module unload.

(closes issue ASTERISK-21406)
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/3284/
........

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

Merged revisions 410225 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 410226 from http://svn.asterisk.org/svn/asterisk/branches/12

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