Close command does not return errors
Closed / Fixed218511ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:30
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
welch Closed ticket [218511ffff].
[History diff]2000-10-26 08:23:19
dgp Ticket [218511ffff]: 3 changes
[History diff]2001-04-05 08:20:13
Log in (anonymous is fine) to add a comment.