Overview
| Artifact ID: | 33ebff35c548a60583b4b6ffdf252ca2f90ecd88 |
|---|---|
| Ticket: | 218511ffffffffffffffffffffffffffffffffff
Close command does not return errors |
| User & Date: | nobody on 2000-10-26 01:01:30 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.0.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "60. NRE and coroutines"
- title changed to: "Close command does not return errors"
- type changed to: "Bug"