tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/server/isapi jk_isapi_plugin.c
Date Mon, 01 Jul 2002 16:53:55 GMT
mturk       2002/07/01 09:53:55

  Modified:    jk/native2/server/isapi jk_isapi_plugin.c
  Log:
  Grecefully shutdown the Tomcat when IIS service stops.
  
  Revision  Changes    Path
  1.31      +7 -4      jakarta-tomcat-connectors/jk/native2/server/isapi/jk_isapi_plugin.c
  
  Index: jk_isapi_plugin.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/server/isapi/jk_isapi_plugin.c,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- jk_isapi_plugin.c	29 Jun 2002 14:17:27 -0000	1.30
  +++ jk_isapi_plugin.c	1 Jul 2002 16:53:55 -0000	1.31
  @@ -524,11 +524,14 @@
   {
       if (is_inited) {
           is_inited = JK_FALSE;
  -
  -/* XXX Here goes a graceful shutdown of jk2, Free resources and pools
  -*/
  +        if (workerEnv) {
  +            jk_env_t *env = workerEnv->globalEnv;
  +            workerEnv->close(env, workerEnv);
  +        }
  +        apr_pool_destroy(jk_globalPool);
  +        workerEnv=NULL;
  +        is_mapread = JK_FALSE;
       }
  -    
       return TRUE;
   }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message