delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/09/23/12:46:14

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: select() and EOF
23 Sep 1998 12:46:14 -0700 :
Message-ID: <01BDE74A.4E07EBA0.cygnus.cygwin32.developers@sos>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

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?

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019