Overview
| Artifact ID: | 8312b35b75ca6990ac3f343e4351d9a40879aabb |
|---|---|
| Ticket: | 439114ffffffffffffffffffffffffffffffffff
Channel buffering affects [close] status |
| User & Date: | dgp on 2001-07-13 05:16:15 |
Changes
- icomment:
Logged In: YES user_id=80530 Thanks for including the test scripts. They help a lot. Now the bad news. Your test scripts fail on all releases of Tcl that I've tested: $ tclsh7.6 % source t.tcl % works child.c : About To Exit NonZero... <<>>Got EOF on file3 Set FioStatus to 1 from catch of close errorCode:$::errorCode can't wait for variable "::PtiExec(FioDone)": would wait forever % fails child.c : About To Exit NonZero... <<>>Got EOF on file3 Set FioStatus to 1 from catch of close errorCode:$::errorCode can't wait for variable "::PtiExec(FioDone)": would wait forever % exit $ tclsh8.0 % info patch 8.0.5 % source t.tcl % works child.c : About To Exit NonZero... <<>>Got EOF on file3 Set FioStatus to 1 from catch of close errorCode:CHILDSTATUS 16053 33 PtiExec(FioStatus):1 % fails child.c : About To Exit NonZero... <<>>Got EOF on file3 Set FioStatus to 1 from catch of close errorCode:CHILDSTATUS 16054 33 PtiExec(FioStatus):1 % Blocking channel driver did not block on input Abort $ tclsh8.1 % info patch 8.1.1 % source t.tcl % works child.c : About To Exit NonZero... <<>>Got EOF on file3 Set FioStatus to 1 from catch of close errorCode:CHILDSTATUS 16057 33 PtiExec(FioStatus):1 % fails child.c : About To Exit NonZero... <<>>Got EOF on file3 Set FioStatus to 1 from catch of close errorCode:CHILDSTATUS 16058 33 PtiExec(FioStatus):1 % $ Note that the script aborts tclsh8.1, but there is no panic message this time. This same behavior is also observed in 8.2.0 and 8.2.1 and 8.2.2. Then in 8.2.3: $ tclsh8.2 % info patch 8.2.3 % source t.tcl % works child.c : About To Exit NonZero... <<>>Got EOF on file3 Set FioStatus to 1 from catch of close errorCode:CHILDSTATUS 25060 33 PtiExec(FioStatus):1 % fails child.c : About To Exit NonZero... <<>>Got EOF on file3 Set FioStatus to 0 from catch of close errorCode:CHILDSTATUS 25060 33 PtiExec(FioStatus):0 % $ Now the [close] doesn't throw an error, which seems to be the bug you are reporting, so that misbehavior first showed up in Tcl 8.2.3, but notice the tclsh still aborts! That behavior is also exhbited by 8.3.3 and 8.4a3, and I'm assuming also all the 8.3.x and 8.4ax releases. Except for the aborting, that's what you report for 8.4a3 as well. You don't see aborts? So, anyway, I'd look into the changes between 8.2.2 and 8.2.3 for the cause of the change in behavior of [close], but I don't see any version of Tcl (on Solaris 8) for which your scripts will work. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"