Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 33ebff35c548a60583b4b6ffdf252ca2f90ecd88
Ticket: 218511ffffffffffffffffffffffffffffffffff
Close command does not return errors
User & Date: nobody on 2000-10-26 01:01:30
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 787 Bug
    Version: 8.0.3
    SubmitDate: '1998-11-02'
    LastModified: '2000-01-12'
    Severity: SER
    Status: Released
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 692
    OS: Solaris
    OSVersion: 2.5.1
    FixedDate: '2000-01-12'
    FixedInVersion: 8.0.5
    ClosedDate: '2000-10-25'
    
    
    ReproducibleScript:
    The following line inside a fileevent callback for reading
    input from a pipe fails to return error codes.
    
       set iseerr [catch {close $pipefd} errorString]
    
    The iserr varible is always 0 even if we explictly return a
    non-zero error code from the other side of the pipe.  I
    found a work around on the internet that said to do the
    close outside of the fileevent callback using vwait as a
    trigger.  I implemented this in a simple example and it
    worked.  When I implemented in our production code, it
    failed.  Therefore there is some other reaction that I am
    not aware of that is causing this to fail.  This bug fix is
    critical for since it means I will have to do some ugly
    modifications to our code to make this work.
    
    Here are references to the articles that report the bug and
    work around.
    
    Bug analysis:
    
            http://x11.dejanews.com/getdoc.xp?AN=393975232
    
    Simple workaround:
    
            http://x14.dejanews.com/getdoc.xp?AN=393246193
    
    
    ObservedBehavior:
    Close doen't return error codes inside fileevent
    callback.
    
    DesiredBehavior:
    Close should return error codes.
    
    
    
    This works again in 8.0.5. 
    -- 12/03/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "60. NRE and coroutines"
  10. title changed to: "Close command does not return errors"
  11. type changed to: "Bug"