commit | a10801674cb9e23ae549fb7f861cb33d8c629e80 | [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 | 33046dcbfa39fcd0ae29b506a84ec90e5bdfad3d [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