Artifacts Associated With Ticket 218553ffffffffffffffffffffffffffffffffff
Ticket change [af1c372bd8] (rid 97748) by nobody on 2000-10-26 01:02:05:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1051 Bug Version: 8.1b1 SubmitDate: '1999-01-15' LastModified: '1999-03-23' Severity: CRIT Status: Released Submitter: pat ChangedBy: redman OS: Windows 95 Machine: X86 FixedDate: '1999-03-23' ClosedDate: '2000-10-25' Name: Graham Haley ReproducibleScript: Set up a readable fileevent handler on stdin ... fileevent stdin readable { puts "handler fired" if {[gets stdin line] >= 0} { puts "$line" } else { puts "gets failed" } } and configure stdin to be non-blocking/line-buffered ... fconfigure stdin -blocking 0 -buffering line Process events ... set result 0 vwait result The handler immediately fires and gets blocks waiting for data. When it arrives, gets returns, prints it and immediately fires again. Surely this is wrong - the whole point of having an event handler is to prevent gets from blocking. This works ok on Solaris. ObservedBehavior: gets hangs DesiredBehavior: The event handler should only be called if there is data to read (and hence gets shouldn't block) 03/23/1999 16:05 - redman - Fixed tclWinConsole.c, fileevents are now firing when an entire line is available. Test case in tests/winConsole.test. - foundin initialized to: "obsolete: 8.1b1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Gets blocks in a readable fileevent"
- type initialized to: "Bug"
Ticket change [2be72c22a5] (rid 118821) by welch on 2000-10-26 08:24:14:
- closedate changed to: "2000-10-26T01:24:14"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [d3498c7ec7] (rid 123266) by dgp on 2001-04-17 04:44:06:
- closedate changed to: "2001-04-16T21:44:06"
- closer changed to: "dgp"
- subsystem changed to: "27. Channel Types"