diff options
author | Josh Gao <jmgao@google.com> | 2017-03-20 11:33:34 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-03-20 14:01:02 -0700 |
commit | cbb65ae216a47a080c2ff301b593f86d7ac2c1a2 (patch) | |
tree | 7ceeafe366776d5c63d9978c188e4a8efcd33ca2 /compiler/optimizing/graph_visualizer.cc | |
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
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions