Re: Bug in select() under Mingw32

2010-06-15 Thread Bruno Haible
Hi, René Berber wrote: > wait_timeout = timeout->tv_sec + timeout->tv_usec / 1000; > > --- last line should be: > > wait_timeout = timeout->tv_sec * 1000 + timeout->tv_usec / 1000; Thanks! Your patch is obviously correct. I've committed it in your name. Bruno

Bug in select() under Mingw32

2010-06-14 Thread René Berber
Hi, There's an error on the select() function: int rpl_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, struct timeval *timeout) { static struct timeval tv0; static HANDLE hEvent; HANDLE h, handle_array[FD_SETSIZE + 2]; fd_set handle_rfds, handle_wfds, handle_xfds;