From: William A. Rowe Jr Date: Wed, 29 May 2002 21:23:03 +0000 (+0000) Subject: Solve a bug identified by Sebastian that we would always reaquire the X-Git-Tag: 2.0.37~197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b8c53f8167db5d916c5d8944ca917fd18ed0735;p=apache Solve a bug identified by Sebastian that we would always reaquire the lock immediately instead of stalling for the isapi module's thread to complete its work. This requires the new changes to thread_mutex that introduce a guarenteed APR_THREAD_MUTEX_UNNESTED flag. Reported by: Sebastian Hantsch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95366 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index bb1305c2d1..81acc00349 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -1487,7 +1487,7 @@ apr_status_t isapi_handler (request_rec *r) apr_thread_mutex_t *comp; rv = apr_thread_mutex_create(&cid->completed, - APR_THREAD_MUTEX_DEFAULT, + APR_THREAD_MUTEX_UNNESTED, r->pool); comp = cid->completed; if (cid->completed && (rv == APR_SUCCESS)) {