apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <grega...@raleigh.ibm.com>
Subject Re: cvs commit: apr/misc/unix start.c
Date Tue, 28 Nov 2000 13:41:54 GMT


rbb@locus.apache.org 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;

Greg

Mime
View raw message