commit | 56112549d23be0b6857be9fcc6c50c616f783152 | [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 | 7ec2a8d4a09a25b9bf241604cee1b1f14a01d578 | |
parent | 8e31ae230b52ec37b6998b93988d3d2595ae50b4 [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