Overview
| Artifact ID: | be9336f35a35b2c6d9f3a6955d49df8ae381e626 |
|---|---|
| Ticket: | 3389289fffffffffffffffffffffffffffffffff
Incomplete closure of stdout on exit |
| User & Date: | ferrieux on 2012-12-10 22:06:51 |
Changes
- assignee changed to: "ferrieux"
- closedate changed to: "2012-12-10T15:06:51"
- closer changed to: "ferrieux"
- icomment:
The reason is a subtle dance between channel refcounts, and per-interp vs. global responsibility, made even more complex by the special case of standard channels (though regular channels have the same problem). The bottom line is that CloseChannel (not to be confused with Tcl_Close, nor ChanClose, nor with the channel's closeProc... argh) fails to be called at exit. In 8.6 the issue gets a different light since we insist on making [exit] as quick and as deadlock-free as possible, so we skip many otherwise useless (if not outright dangerous) finalizers... among which the interp's deletion, which gets the final chance to call CloseChannel (as can be seen by forcing TCL_FINALIZE_ON_EXIT). In this context, closing the issue as "Won't Fix" because: - output-eofchar-plus-exit-minus-close has never worked in Tcl's history - no explicit promise has ever been made in the manpages - eofchar is a DOS-only notion of dubious use nowadays - fixing it would require (a) either an overhaul of the IO finalization code (b) or an increased risk for [exit] to revive tricky finalization bugs Note that I'm setting myself as assignee, ready to listen to arguments from people with a strong case for reopening.
- login: "ferrieux"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "ferrieux"