commit | 9cf355a4e78c03a0350f1938878344a9f7cd1c99 | [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 | 00f2d25d8c3ca3d77eec7261e5b167f35af671c8 [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