[Bug] dup() of serial file descriptor confuses select()
Billy
billy@dadadada.net
Wed Jan 12 01:08:00 GMT 2005
select() exhibits incorrect behavior when given
a dup()-licated serial device file descriptor
in its fd_set parameters. The select() call
immediately returns -1, but with errno = 0.
$ ./serialdupselect.exe /dev/com14
select: nsel=-1
errno=0, No error
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: serialdupselect.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050112/5ccda8a6/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050112/5ccda8a6/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list