On 01.05.2006, at 19:23, Vlad Seryakov wrote:
Funny thing i encountered today, working with Berkeley module, i
discovered that once loaded, DB driver is never closed, in case of
DB it needs to be closed otherwise datafile can be corrupted.
I am thinking to make it more generic, to add Ns_ModuleShutdown
call to the modules and if defined, register it and on server
shutdown call them in reverse order. Each module will decide what
to do it if such public function is defined.
And for nsdb module i would close all pools on exit, for SQL
drivers that is not the problem but for others it could be important.
Any objections?
How would you unload the shared library?
IIRC, Tcl has a generic wrapper for that...
Cheers
Zoran