You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2005/02/05 13:41:17 UTC
cvs commit: jakarta-tomcat-connectors/jk/native/apache-2.0 mod_jk.c
mturk 2005/02/05 04:41:17
Modified: jk/native/apache-2.0 mod_jk.c
Log:
Re-open a global log mutex lock in a child process.
From APR documentation:
This function must be called to maintain portability, even
if the underlying lock mechanism does not require it.
Revision Changes Path
1.116 +8 -1 jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
Index: mod_jk.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -r1.115 -r1.116
--- mod_jk.c 12 Jan 2005 17:23:11 -0000 1.115
+++ mod_jk.c 5 Feb 2005 12:41:17 -0000 1.116
@@ -2189,9 +2189,16 @@
{
jk_server_conf_t *conf;
int mpm_threads = 1;
+ apr_status_t rv;
conf = ap_get_module_config(s->module_config, &jk_module);
+ rv = apr_global_mutex_child_init(&jk_log_lock, NULL, pconf);
+ if (rv != APR_SUCCESS) {
+ ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s,
+ "mod_jk: could not init JK log lock in child");
+ }
+
JK_TRACE_ENTER(conf->log);
/* Set default connection cache size for worker mpm */
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org