[svn:mod_parrot] r362 - mod_parrot/trunk/src
[email protected] Sat, 19 Jul 2008 12:20:18 -0700 (PDT)
| Newsgroups | perl.cvs.mod_parrot |
|---|---|
| Message-ID | <[email protected]> |
Author: jhorwitz
Date: Sat Jul 19 12:20:17 2008
New Revision: 362
Modified:
mod_parrot/trunk/src/mod_parrot.c
Log:
return current context from modparrot_startup if we've already started
Modified: mod_parrot/trunk/src/mod_parrot.c
==============================================================================
--- mod_parrot/trunk/src/mod_parrot.c (original)
+++ mod_parrot/trunk/src/mod_parrot.c Sat Jul 19 12:20:17 2008
@@ -172,7 +172,10 @@
}
}
- if (!(ctxp = init_ctx(s))) {
+ if ((ctxp = init_ctx(s))) {
+ mp_is_started = 1;
+ }
+ else {
MPLOG_ERROR(s, "context initialization failed");
return NULL;
}
@@ -182,7 +185,6 @@
*/
ctxp->pconf = p;
- mp_is_started = 1;
return(ctxp);
}