On Tue, 28 Nov 2000, Greg Ames wrote:

> 
> 
> [EMAIL PROTECTED] wrote:
> > 
> [...]
> > 
> >   +    if (initialized) {
> >   +        return APR_SUCCESS;
> >   +    }
> >   +    initialized++;
> >   +
> 
> Oooops...this only counts to 1.  Works OK when there's at most 2 APR
> users, but what if there are 3?  We don't want to destroy locks when the
> second user goes away.  How about:
> 
>   if (initialized++) {
>       return APR_SUCCESS;

You're right.  I wrote this section before even thinking about the
termination, and didn't check it after I did the terminating stuff.

Ryan

_______________________________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------

Reply via email to