Overview
| Artifact ID: | 9277491f1f9fe158e7cdf7524ab3356482bccd5d |
|---|---|
| Ticket: | 132fad6fde1b40e8f1e2081884313a98fdd1d4cc
exit 0 - Hangs under Windows |
| User & Date: | ferrieux on 2014-09-02 20:20:29 |
Changes
- icomment:
Polished patch, guarantees that in the TCL_FINALIZE_ON_EXIT=1 case, things happen exactly as before (that his, hanging at the same place). This allows to keep most users happy, and let interested parties debug commit 4ca7fe7cf209ccf83375421d45464ff9a5f90a29 by setting the var. Index: generic/tclEvent.c ================================================================== --- generic/tclEvent.c +++ generic/tclEvent.c @@ -1297,22 +1297,24 @@ TclFinalizeIOSubsystem(); TclFinalizeNotifier(); TclFinalizeAsync(); TclFinalizeThreadObjects(); } + if (TclFullFinalizationRequested()) { /* useless if we are facing a quick-exit */ - /* - * Blow away all thread local storage blocks. - * - * Note that Tcl API allows creation of threads which do not use any Tcl - * interp or other Tcl subsytems. Those threads might, however, use thread - * local storage, so we must unconditionally finalize it. - * - * Fix [Bug #571002] - */ - - TclFinalizeThreadData(); + /* + * Blow away all thread local storage blocks. + * + * Note that Tcl API allows creation of threads which do not use any Tcl + * interp or other Tcl subsytems. Those threads might, however, use thread + * local storage, so we must unconditionally finalize it. + * + * Fix [Bug #571002] + */ + + TclFinalizeThreadData(); + } } /* *---------------------------------------------------------------------- * - login: "ferrieux"
- mimetype: "text/plain"