You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mt...@apache.org on 2004/09/19 10:47:22 UTC

cvs commit: jakarta-commons/daemon/src/native/nt/procrun/src javajni.c

mturk       2004/09/19 01:47:22

  Modified:    daemon/src/native/nt/procrun/src javajni.c
  Log:
  Do not call DestroyJavaVM when closing jvm.dll. It causes
  service to exit prematurely
  
  Revision  Changes    Path
  1.4       +4 -1      jakarta-commons/daemon/src/native/nt/procrun/src/javajni.c
  
  Index: javajni.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/nt/procrun/src/javajni.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- javajni.c	17 Jun 2004 02:04:16 -0000	1.3
  +++ javajni.c	19 Sep 2004 08:47:22 -0000	1.4
  @@ -212,10 +212,13 @@
                   JVM_DELETE_CLAZZ(lpJava, clString);
                   __apxJvmDetach(lpJava);
                   /* Check if this is the jvm loader */
  -                if (!lpJava->iVmCount) {
  +                if (!lpJava->iVmCount && _st_sys_jvmDllHandle) {
  +#if 0
                       /* Do not destroy if we terminated the worker thread */
                       if (dwJvmRet != STILL_ACTIVE)
                           (*(lpJava->lpJvm))->DestroyJavaVM(lpJava->lpJvm); 
  +#endif
  +                    /* Unload JVM dll */
                       FreeLibrary(_st_sys_jvmDllHandle);
                       _st_sys_jvmDllHandle = NULL;
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org