This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE:select() returns 0 (NT4.0)
- To: gnu-win32 at cygnus dot com
- Subject: RE:select() returns 0 (NT4.0)
- From: Matthias Weng <weng at tp-cad dot com>
- Date: Fri, 09 Oct 1998 13:38:23 +0000
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".