]> Savannah Git Hosting - gnulib.git/commit
select,poll: fix console handle check on windows 8
authorPádraig Brady <P@draigBrady.com>
Tue, 10 Jun 2014 22:31:39 +0000 (23:31 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 11 Jun 2014 10:06:49 +0000 (11:06 +0100)
commitc6e14bbd5d404d147504acdd74c3fd17d5ef1088
treeb7757a925fd98a0e8ee2d050de9a9d8ebac51256
parentaaaf546f290eb87b0113ed8ddbacc1cf2f1e2e57
select,poll: fix console handle check on windows 8

Similarly to commit a008d625 which fixed the obvious
problem with isatty(), also apply the fix to the
select() and poll() MS-Windows implementations.

lib/poll.c (IsConsoleHandle): Change from testing the lower
2 bits of the handle to the more expensive but accurate syscall.
lib/select.c: Likewise.
ChangeLog
lib/poll.c
lib/select.c