Re: select() issue in MinGW build

2017-05-19 Thread Tim Rühsen
On 05/18/2017 07:15 PM, Bruno Haible wrote: >> Currently discussed here: >> https://gitlab.com/gnuwget/wget2/issues/212 > > Note that 'wine' is *not* a supported platform for gnulib. > > It is already time consuming enough to try to support mingw and MSVC. > Supporting 'wine' would mean to additi

Re: select() issue in MinGW build

2017-05-18 Thread Bruno Haible
> Currently discussed here: > https://gitlab.com/gnuwget/wget2/issues/212 Note that 'wine' is *not* a supported platform for gnulib. It is already time consuming enough to try to support mingw and MSVC. Supporting 'wine' would mean to additionally deal with the bugs in 'wine' (i.e. analyze them,

Re: select() issue in MinGW build

2017-05-18 Thread Bruno Haible
Hi, > are there know issues with select() when build for MinGW ? Yes. 1) In https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00112.html you can see that we have known test failures. 2) Gnulib's implementation of select() cannot look at the sockets at the non-sockets (files and pipes

select() issue in MinGW build

2017-05-18 Thread Tim Rühsen
Hi, are there know issues with select() when build for MinGW ? Code is basically: FD_ZERO(&fdset); FD_SET(fd, &fdset); rd = &fdset; wr = &fdset; select (fd + 1, rd, wr, NULL, NULL); Select() always immediately comes back with 0, WSAGetLastError() return 6 (WSA_INVALID_HANDLE). fd is a valid