marcsaeg    01/08/31 06:53:41

  Modified:    src/native/mod_jk/nt_service jk_nt_service.c
  Log:
  Porting changes to tomcat_32.
  
  If the Tomcat VM dies unexpectedly, jk_nt_service now terminates abruptly (i.e. 
without notifying the SCM).  This causes the NT service recovery process to attempt to 
restart the service (assuming the jk_nt_service has been configured for restarting).
  
  Submitted by: Dave Ringoen [[EMAIL PROTECTED]]
  
  Revision  Changes    Path
  1.4       +6 -1      jakarta-tomcat/src/native/mod_jk/nt_service/jk_nt_service.c
  
  Index: jk_nt_service.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/nt_service/jk_nt_service.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jk_nt_service.c   2001/04/24 08:49:46     1.3
  +++ jk_nt_service.c   2001/08/31 13:53:41     1.4
  @@ -56,7 +56,7 @@
   /***************************************************************************
    * Description: NT System service for Jakarta/Tomcat                       *
    * Author:      Gal Shachor <[EMAIL PROTECTED]>                           *
  - * Version:     $Revision: 1.3 $                                           *
  + * Version:     $Revision: 1.4 $                                           *
    ***************************************************************************/
   
   #include "jk_global.h"
  @@ -535,6 +535,11 @@
                           /* 
                            * Tomcat died !!!
                            */ 
  +                        CloseHandle(hServerStopEvent);
  +                        CloseHandle(hTomcat);
  +                        exit(0); // exit ungracefully so
  +                                 // Service Control Manager 
  +                                 // will attempt a restart.
                           break;
                       default:
                           /* 
  
  
  

Reply via email to