commit | 3bbc8164b12f06c819a5b2acdc525199a9ff6f3e | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Jun 18 16:37:01 2018 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Jun 18 17:46:34 2018 -0700 |
tree | a2215059e8060795a9b0af7c85d115c893898060 | |
parent | ded557fa58ec2c7c2f2bea8b71d75afe21c37168 [diff] |
adb: detect some spin loops and abort. Track pending fdevents, and abort if we see an fdevent ready for read/write for 5 minutes continuously. Also, add a service that intentionally starts spinning, to test this. Test: manually changed timeout to a minute, `adb raw spin` Change-Id: Ibfa5e7e654996587f745887cb04987b982d79bed