diff options
author | gregames <gregames@13f79535-47bb-0310-9956-ffa450edef68> | 2000-11-29 21:16:10 +0000 |
---|---|---|
committer | gregames <gregames@13f79535-47bb-0310-9956-ffa450edef68> | 2000-11-29 21:16:10 +0000 |
commit | 763f20d53fabc0419924058b9684efdc629a1656 (patch) | |
tree | 567a8355964bb123ff1cd9ad303f4056426a923d | |
parent | 353747bfba813eb5857c6a480baf92c38a7a5204 (diff) | |
download | libapr-763f20d53fabc0419924058b9684efdc629a1656.tar.gz |
Increment "initialize" every time a new APR user starts, so locks aren't
destroyed prematurely.
What a great day - mod_info is really back! Thanks to two Ryans and a Jeff.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60815 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | misc/unix/start.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/unix/start.c b/misc/unix/start.c index a52bb44a9..62db9a2ba 100644 --- a/misc/unix/start.c +++ b/misc/unix/start.c @@ -117,10 +117,9 @@ apr_status_t apr_initialize(void) int err; #endif - if (initialized) { + if (initialized++) { return APR_SUCCESS; } - initialized++; #if !defined(BEOS) && !defined(OS2) && !defined(WIN32) apr_unix_setup_lock(); |