select() returns 0 (NT4.0)

Matthias Weng weng@tp-cad.com
Fri Oct 9 06:48:00 GMT 1998


Hi there,
the problem isn't a bug, its a mistake in the select call. All the worry
was caused by a wrong value for the size of the bitfield. The call must
contain the number of bits to examine and not the size of (sizeof()) the
structure. I'm sorry for blaming B19 for my own fault.

wrong :
res = select(sizeof(fd_var), &fd_read, &fd_write, &fd_except,
&nulltime);

right :
res = select(sizeof(fd_var) *8, &fd_read, &fd_write, &fd_except,
&nulltime);                     ^^^

Thanks for all the folks who invested some thoughts or some time in this
problem

--Matthias Weng

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list