summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Querna <pquerna@apache.org>2008-12-05 09:14:14 +0000
committerPaul Querna <pquerna@apache.org>2008-12-05 09:14:14 +0000
commitd9370018b82dd7397488b10fca42f7eabd7f2d31 (patch)
tree5e3bba3234f345048db13ad19b2887f439f2ac09
parente5c05b87078bb8c065923655ec7ee62e49604b24 (diff)
downloadhttpd-d9370018b82dd7397488b10fca42f7eabd7f2d31.tar.gz
Add a comment explaining the start mutex.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@723675 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/cluster/mod_heartmonitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/cluster/mod_heartmonitor.c b/modules/cluster/mod_heartmonitor.c
index 41cba183ab..8097adc371 100644
--- a/modules/cluster/mod_heartmonitor.c
+++ b/modules/cluster/mod_heartmonitor.c
@@ -392,6 +392,9 @@ static void start_hm_worker(apr_pool_t *p, hm_ctx_t *ctx)
return;
}
+ /* This mutex fixes problems with a fast start/fast end, where the pool
+ * cleanup was being invoked before the thread completely spawned.
+ */
apr_thread_mutex_lock(ctx->start_mtx);
apr_pool_cleanup_register(p, ctx, hm_pool_cleanup, apr_pool_cleanup_null);