From: Rob McCool <robm@netscape.com>
Newsgroups: netscape.devs-nsapi
Subject: Re: sharing db connection in NSAPI
Date: Fri, 26 Jul 1996 18:12:26 -0700

W. Craig Trader wrote: > I've been using Illustra on Suns and having the same problem. > > If you open a connection in an Init function (1) every time NetSite > spawns another daemon, it will use that single connection, and (2) > there's no way to close the connection when you shut down NetSite. > > I haven't decided which of these is uglier. Netscape *really* needs > to provide an exit-process to match the existing init-process, in > order to allow for properly cleaning up resources.

If you register a function to be called using daemon_atrestart, it will be called by both the base process as well as the workers when the server is about to restart or shut down.

--
Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/
Stunt Programmer, Netscape Communications Corporation
It was working ten minutes ago, I swear...
Reproduced by permission of the author.