summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2019-01-11 14:42:08 -0800
committerJosh Gao <jmgao@google.com>2019-01-31 23:36:41 -0800
commit74b7ec72f8a535c6ab63b03316d1de0414f42b63 (patch)
treefcdc15dfdce8fc3b094a94a8c17187ae3804f12f /trusty/coverage/coverage.cpp
parent1a90118bbb93566eec157a3c356dcf82d15c269f (diff)
adb: don't close sockets before hitting EOF.
Reimplement commit ffc11d3cf3643c24780f902386be61851531f022 using fdevent. The previous attempt was reverted because we were blindly continuing when revents & POLLIN == 0, which ignored POLLHUP/POLLERR, leading to spinloops when the opposite end of the file descriptor was shutdown when we had no data left to read. This patch reimplements the functionality implemented by that commit using fdevent, which gets us detection of spin loops for free. Bug: http://b/74616284 Test: ./test_device.py Change-Id: I1abd671fef4c29e99dad968aa66bb754ca382578
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions