diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2014-01-26 00:58:30 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2014-01-26 00:58:30 +0100 |
commit | 49b63cf30d4242b51bd49295f9f20cfbfb641a7d (patch) | |
tree | ae36cb1e00e1d46c68ea957351b03c718c2b7785 /tests/data/test55 | |
parent | f55f8d4c18c857a249f396636c663dee94d65d5b (diff) |
sockfilt.c: fixed and simplified Windows select function
Since the previous complex select function with initial support for
non-socket file descriptors, did not actually work correctly for
Console handles, this change simplifies the whole procedure by using
an internal waiting thread for the stdin console handle.
The previous implementation made it continuously trigger for the stdin
handle if it was being redirected to a parent process instead of
an actual Console input window.
This approach supports actual Console input handles as well as
anonymous Pipe handles which are used during input redirection.
It depends on the fact that ReadFile supports trying to read zero bytes
which makes it wait for the handle to become ready for reading.
Diffstat (limited to 'tests/data/test55')
0 files changed, 0 insertions, 0 deletions