commit | cbb65ae216a47a080c2ff301b593f86d7ac2c1a2 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Mar 20 11:33:34 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Mar 20 14:01:02 2017 -0700 |
tree | 7ceeafe366776d5c63d9978c188e4a8efcd33ca2 | |
parent | 46ef4a6f7f59f65c77ef99d4a8d9fcd6d6d3ef0b [diff] |
jdwp: switch to SOCK_SEQPACKET. When sending the process's PID to adbd, we use TEMP_FAILURE_RETRY(send(...)), and check if the result is non-negative. However, this could theoretically return short, leaving adbd waiting for the rest of the PID. Switch the socket to a SOCK_SEQPACKET to sidestep all of this. Bug: http://b/36411868 Test: adb jdwp Change-Id: I0ec75912ac579868f77554e3c6db23c7ab95a34c