From: Rob McCool <robm@netscape.com>
Newsgroups: netscape.devs-nsapi
Subject: Re: Persistent db connection
Date: Thu, 31 Oct 1996 12:48:59 -0800

> From local experimentation (Enterprise 2.0/Irix 5.3), my results
> indicate
> that functions that are registered by
> daemon_atrestart/magnus_atrestart are not called when the server is
> shut down, but only when the server is restarted.  This is how the 1.X
> servers functioned, but I thought that the 2.X servers were supposed
> to be called when the server is shut down as well.  Could you explain
> what I'm missing?

Unfortunately what you're missing is that the functions are not called at shutdown for the IRIX 2.0 servers. I usually mention that when I bring up daemon_atrestart under 2.0, this time I forgot. There was a deadlock condition which caused processes to become hung on restarts, and we were unable to reconcile it.

You may want to try registering your function with atexit() under IRIX, I've suggested that to others but I haven't heard if it works or not.

--
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.