Mail Archives: cygwin-developers/1998/09/24/06:42:29
On Wed, Sep 23, 1998 at 11:31:34PM +0400, Sergey Okhapkin wrote:
>Hi!
>
>According to the following code fragment from tcl test suite:
>
>if {[info commands testfilewait] != ""} {
> test event-13.8 {Tcl_WaitForFile procedure, waiting indefinitely} unixOnly {
> set f [open "|sleep 2" r]
> set result ""
> lappend result [testfilewait $f readable 100]
> lappend result [testfilewait $f readable -1]
> close $f
> set result
> } {{} readable}
>}
>
>
>select() call should mark file descriptor as readable on EOF contition, isn't it?
Yup. It looks like it. I just tested this on Linux. It should flag both an
exception and a "read ready".
I'll make that change.
--
cgf AT cygnus DOT com
http://www.cygnus.com/
- Raw text -