From: Vlad S. <vl...@cr...> - 2006-05-01 17:54:52
|
Not unload, but call proc on "unload", similar to init during loading, that will be shutdown proc on server exit Zoran Vasiljevic wrote: > > 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 > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |