Ns cleanup

From AOLserver Wiki
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_cleanup.html


ns_cleanup - Clean up the current Tcl interpreter




This command cleans up the current Tcl interp, performing various garbage collection tasks. This command is invoked by the Ns_TclDeAllocateInterp() C function at interpreter deallocation (aka cleanup) time (i.e. at the end of each request or scheduled procedure execution). This is a Tcl procedure defined in bin/init.tcl and it calls other procs in that file to clear global variables, release database handles, close all open files, etc.
You should never need to call this procedure directly unless you want to manually clear your current interpreter without running the full deallocate/allocate traces using ns_ictl facilities.


ns_init, ns_markfordelete