You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2002/07/01 18:53:55 UTC

cvs commit: jakarta-tomcat-connectors/jk/native2/server/isapi jk_isapi_plugin.c

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>