Overview
| Artifact ID: | ce36c9958a47e28c795d012b3de1d9abf74ab526 |
|---|---|
| Ticket: | 35a839cba8a4e6bbdcd9567f958d56076fe5bd0f
Can not reinitialize Tcl after Tcl_Finalize() |
| User & Date: | ferrieux on 2014-08-25 22:19:58 |
Changes
- icomment:
Naive one-liner below just resets the flag at the end of Tcl_Finalize. Test suite ok even with TCL_FINALIZE_ON_EXIT=1, but that's hardly a proof of anything, since I guess no test does this (finalize and start over). Maybe you have the proper wrench at hand ? Index: generic/tclEvent.c ================================================================== --- generic/tclEvent.c +++ generic/tclEvent.c @@ -1245,10 +1245,15 @@ TclFinalizeMemorySubsystem(); alreadyFinalized: TclFinalizeLock(); + + /* + * In case someone wants to start over, permit it. + */ + inExit = 0; } /* *---------------------------------------------------------------------- * - login: "ferrieux"
- mimetype: "text/plain"