From: Rob McCool <robm@netscape.com>
Newsgroups: netscape.devs-nsapi
Subject: Re: NSAPI and NDBM
Date: Wed, 23 Oct 1996 18:26:14 -0700

> I've just found that the Init function is called once by one process
> when I do "start" but is called many times, each by a forked processes
> when I do "restart".  On my Solaris2.5, there are at least 2 forked
> processes (the second one is for DNS).  Now I have to safe guide
> the NDBM file from being r/w simultaneously by two processes.
> How should I do this?

Are you certain? On soft restart the only process which should re-execute the Init functions is the original (parent) process. The forked children, DNS or not, do not execute the Init functions (it's something people have requested to have in the API).

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