summaryrefslogtreecommitdiffstats
path: root/doc/Exit.3
diff options
context:
space:
mode:
authorhobbs <hobbs>2008-08-01 18:22:27 (GMT)
committerhobbs <hobbs>2008-08-01 18:22:27 (GMT)
commite8eb91c8acb09e341223b15de621f7ef1c8131f9 (patch)
tree34e65cd7252bbe4a9768ac6bf2ff2c3194147b02 /doc/Exit.3
parent4500f56474ce572532e86d38956af8fe69eb9d7d (diff)
downloadtcl-e8eb91c8acb09e341223b15de621f7ef1c8131f9.zip
tcl-e8eb91c8acb09e341223b15de621f7ef1c8131f9.tar.gz
tcl-e8eb91c8acb09e341223b15de621f7ef1c8131f9.tar.bz2
* doc/Exit.3: do not call Tcl_Finalize implicitly
* generic/tclEvent.c: on DLL_PROCESS_DETACH as it may lead * win/tclWin32Dll.c (DllMain): to issues and the user should be explicitly calling Tcl_Finalize before unloading regardless. Clarify the docs to note the explicit need in embedded use.
Diffstat (limited to 'doc/Exit.3')
-rw-r--r--doc/Exit.310
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/Exit.3 b/doc/Exit.3
index 082802c..61fb222 100644
--- a/doc/Exit.3
+++ b/doc/Exit.3
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: Exit.3,v 1.7 2008/06/29 22:28:24 dkf Exp $
+'\" RCS: @(#) $Id: Exit.3,v 1.8 2008/08/01 18:22:29 hobbs Exp $
'\"
.so man.macros
.TH Tcl_Exit 3 8.5 Tcl "Tcl Library Procedures"
@@ -74,12 +74,8 @@ exit from the current process.
It is useful for cleaning up when a process is finished using \fBTcl\fR but
wishes to continue executing, and when \fBTcl\fR is used in a dynamically
loaded extension that is about to be unloaded.
-On some systems \fBTcl\fR is automatically notified when it is being
-unloaded, and it calls \fBTcl_Finalize\fR internally; on these systems it
-not necessary for the caller to explicitly call \fBTcl_Finalize\fR.
-However, to ensure portability, your code should always invoke
-\fBTcl_Finalize\fR when \fBTcl\fR is being unloaded, to ensure that the
-code will work on all platforms. \fBTcl_Finalize\fR can be safely called
+Your code should always invoke \fBTcl_Finalize\fR when \fBTcl\fR is being
+unloaded, to ensure proper cleanup. \fBTcl_Finalize\fR can be safely called
more than once.
.PP
\fBTcl_ExitThread\fR is used to terminate the current thread and invoke