Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 784c3b860319a97f78ce2caa42feb70bbf2b3084
Ticket: 1995063fffffffffffffffffffffffffffffffff
Doc: example in fileevent manpage is bad.
User & Date: avl42 on 2008-06-16 12:06:40
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The example event-handler procedure does check for
    eof on the channel, but doesn't close the channel,
    and would therefore cause a busy loop on eof.
    
    Suggestion:
    
       proc GetData {chan} {
           if {[eof $chan]} { close $chan; return }
    
           puts [gets $chan]
       }
    
    might be a more typical example.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "avl42"
  10. subsystem changed to: "24. Channel Commands"
  11. title changed to: "Doc: example in fileevent manpage is bad."
  12. type changed to: "Bug"