commit | 536e12fefb9bedc6dc6b6973d27d4fa3f8864d66 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Fri Sep 04 16:19:56 2015 -0700 |
committer | Yabin Cui <yabinc@google.com> | Tue Sep 15 10:12:31 2015 -0700 |
tree | d42441497b891de27c57cdf8011617a95a6cce5a | |
parent | d043b3cbf7c900dee4f9878cfb171fe58cba13a3 [diff] |
adb: move adb to poll. It is reported that the registered fd can be bigger than FD_SETSIZE, and can't be handled by select(). By moving to poll(), we can remove the limitation. Although we can't ignore the possibility that there is a fd leak, but we can still make the potential bug more explicit by moving to poll(). We didn't move to epoll() because it is not supported on mac. Bug: 23820751 Change-Id: Icb39329c4984f1fef749472c9e088682ee8c3444