perl.cvs.mod_parrot
[Top] [All Lists]

[svn:mod_parrot] r362 - mod_parrot/trunk/src

Subject: [svn:mod_parrot] r362 - mod_parrot/trunk/src
From: jhorwitz@xxxxxxxxxxxx
Date: Sat, 19 Jul 2008 12:20:18 -0700 (PDT)
Newsgroups: perl.cvs.mod_parrot

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);
 }
 

<Prev in Thread] Current Thread [Next in Thread>
  • [svn:mod_parrot] r362 - mod_parrot/trunk/src, jhorwitz <=