Skip to content
Tcl Source Code History Of Ticket 218553ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 218553ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 218553ffffffffffffffffffffffffffffffffff

  1. Ticket change [af1c372bd8] (rid 97748) by nobody on 2000-10-26 01:02:05:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
      
    4. foundin initialized to: "obsolete: 8.1b1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Gets blocks in a readable fileevent"
    11. type initialized to: "Bug"
  2. Ticket change [2be72c22a5] (rid 118821) by welch on 2000-10-26 08:24:14:

    1. closedate changed to: "2000-10-26T01:24:14"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [d3498c7ec7] (rid 123266) by dgp on 2001-04-17 04:44:06:

    1. closedate changed to: "2001-04-16T21:44:06"
    2. closer changed to: "dgp"
    3. subsystem changed to: "27. Channel Types"