commit | b6232b96ddda96f3d72dd787fae0b0087ddbcab9 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed Feb 17 16:45:39 2016 -0800 |
committer | Josh Gao <jmgao@google.com> | Fri Feb 19 11:24:51 2016 -0800 |
tree | c3bbeb4165a754d409d9a453a0c6d1d0bee0820c | |
parent | 3777d2ecc05d397ca501f4ee296e4e66568bb1bd [diff] |
adb: move win32 fd base to 2048, fix fd allocation. Windows has a maximum fd limit of 2048, so we can avoid collision with real file descriptors by starting from there. Also, fds would be previously be allocated by a linear walk from the last allocated FD, instead of the lowest available FD, as required by POSIX. Keep track of the lowest available file descriptor to make things feel more familiar. Change-Id: Id6ac1c54f4f7964a6cdfa8d3f4f96262e4881964