Re: [Bug] dup() of serial file descriptor confuses select()

2005-01-13 Thread Corinna Vinschen
On Jan 11 17:46, Billy wrote: > > 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. Thanks for the report and the testcase. Both problems should be fixed now

[Bug] dup() of serial file descriptor confuses select()

2005-01-11 Thread Billy
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 // // demonstrate/test a Cygwin bug. // dup of