You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2001/08/31 04:18:55 UTC

cvs commit: jakarta-tomcat/src/native/nt_service jk_nt_service.c

marcsaeg    01/08/30 19:18:55

  Modified:    src/native/nt_service Tag: tomcat_32 jk_nt_service.c
  Log:
  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 [dringoen@alventive.com]
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.3   +6 -1      jakarta-tomcat/src/native/nt_service/Attic/jk_nt_service.c
  
  Index: jk_nt_service.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/nt_service/Attic/jk_nt_service.c,v
  retrieving revision 1.3.2.2
  retrieving revision 1.3.2.3
  diff -u -r1.3.2.2 -r1.3.2.3
  --- jk_nt_service.c	2000/11/10 23:09:50	1.3.2.2
  +++ jk_nt_service.c	2001/08/31 02:18:55	1.3.2.3
  @@ -56,7 +56,7 @@
   /***************************************************************************
    * Description: NT System service for Jakarta/Tomcat                       *
    * Author:      Gal Shachor <sh...@il.ibm.com>                           *
  - * Version:     $Revision: 1.3.2.2 $                                           *
  + * Version:     $Revision: 1.3.2.3 $                                           *
    ***************************************************************************/
   
   #include "jk_global.h"
  @@ -534,6 +534,11 @@
                           /* 
                            * Tomcat died !!!
                            */ 
  +                        CloseHandle(hServerStopEvent);
  +                        CloseHandle(hTomcat);
  +                        exit(0); // exit ungracefully so
  +                                 // Service Control Manager 
  +                                 // will attempt a restart.
                           break;
                       default:
                           /*