commit | 8334e10e4cd5b3e19ce74397ab6b1de2628e97bb | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Tue May 17 17:46:27 2016 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed May 18 17:20:30 2016 -0700 |
tree | bac45a68cf3359f57e90bb075118385aa7b2a490 | |
parent | 2a5b2c64c36a3916403aa73911fea39c125579f1 [diff] |
adb: switch the socket list mutex to a recursive_mutex. sockets.cpp was branching on whether a socket close function was local_socket_close in order to avoid a potential deadlock if the socket list lock was held while closing a peer socket. Bug: http://b/28347842 Change-Id: I5e56f17fa54275284787f0f1dc150d1960256ab3 (cherry picked from commit 9b587dec6d0a57c8fe1083c1c543fbeb163d65fa)