This fixes a log corruption issue when flock-based serialization
is used (e.g., FreeBSD).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100187
13f79535-47bb-0310-9956-
ffa450edef68
[Remove entries to the current 2.0 section below, when backported]
+ *) mod_rewrite: Perform child initialization on the rewrite log lock.
+ This fixes a log corruption issue when flock-based serialization
+ is used (e.g., FreeBSD). [Jeff Trawick]
+
*) Don't respect the Server header field as set by modules and CGIs.
As with 1.3, for proxy requests any such field is from the origin
server; otherwise it will have our server info as controlled by
}
}
+ rv = apr_global_mutex_child_init(&rewrite_log_lock, NULL, p);
+ if (rv != APR_SUCCESS) {
+ ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s,
+ "mod_rewrite: could not init rewrite log lock in child");
+ }
+
/* create the lookup cache */
cachep = init_cache(p);
}