[mapserver-commits] r12461 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Fri Aug 26 07:28:26 EDT 2011
Author: tbonfort
Date: 2011-08-26 04:28:26 -0700 (Fri, 26 Aug 2011)
New Revision: 12461
Modified:
trunk/mapserver/mapcache/src/mod_geocache.c
Log:
Modified: trunk/mapserver/mapcache/src/mod_geocache.c
===================================================================
--- trunk/mapserver/mapcache/src/mod_geocache.c 2011-08-26 11:28:23 UTC (rev 12460)
+++ trunk/mapserver/mapcache/src/mod_geocache.c 2011-08-26 11:28:26 UTC (rev 12461)
@@ -421,6 +421,7 @@
config->mutex = cfg->mutex;
}
+#ifdef EXPERIMENTAL_POST_CONFIG
/* fork a child process to let it accomplish post-configuration tasks with the uid of the runtime user */
apr_proc_t proc;
rv = apr_proc_fork(&proc, ptemp);
@@ -465,6 +466,9 @@
ap_log_error(APLOG_MARK, APLOG_CRIT, APR_EGENERAL, s, "failed to fork geocache post-config child");
return APR_EGENERAL;
}
+#else
+ return OK;
+#endif
}
static void mod_geocache_child_init(apr_pool_t *pool, server_rec *s) {
@@ -600,6 +604,12 @@
if(GC_HAS_ERROR(ctx)) {
return ctx->get_error_message(ctx);
}
+#ifndef EXPERIMENTAL_POST_CONFIG
+ geocache_configuration_post_config(ctx,config);
+ if(GC_HAS_ERROR(ctx)) {
+ return ctx->get_error_message(ctx);
+ }
+#endif
ap_log_error(APLOG_MARK, APLOG_INFO, 0, cmd->server, "loaded geocache configuration file from %s on alias %s", config->configFile, alias);
if(!sconfig->aliases) {
sconfig->aliases = apr_hash_make(cmd->pool);
More information about the mapserver-commits
mailing list