Ns cleanup

From AOLserver Wiki
Revision as of 01:44, 18 June 2010 by Akhassin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


NAME

ns_cleanup - Clean up the current Tcl interpreter

SYNOPSIS

ns_cleanup

DESCRIPTION

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.

SEE ALSO

ns_init, ns_markfordelete

-