[svn:mod_parrot] r622 - mod_parrot/trunk/src
[email protected] Sun, 1 Mar 2009 09:03:56 -0800 (PST)
| Newsgroups | perl.cvs.mod_parrot |
|---|---|
| Message-ID | <[email protected]> |
Author: jhorwitz
Date: Sun Mar 1 09:03:55 2009
New Revision: 622
Modified:
mod_parrot/trunk/src/modparrot_config.c
Log:
fix virtual host interpreter startup (part 2). push HLL modules onto the
preload array so interpreters from other context pools can see them. this
causes major breakage with dynops (see mod_perl6) but we'll deal with that
later.
Modified: mod_parrot/trunk/src/modparrot_config.c
==============================================================================
--- mod_parrot/trunk/src/modparrot_config.c (original)
+++ mod_parrot/trunk/src/modparrot_config.c Sun Mar 1 09:03:55 2009
@@ -253,6 +253,13 @@
modparrot_load_file(ctxp->interp, cmd->server, path);
+ /* push onto the preload array so other interpreters can see the HLL
+ * module. modparrot_add_module won't add the module to apache again,
+ * and parrot *shouldn't* try to load the bytecode again for the same
+ * interpreter.
+ */
+ *(char **)apr_array_push(cfg->preload) = apr_pstrdup(cmd->pool, path);
+
return NULL;
}