You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2010/10/19 17:51:36 UTC
svn commit: r1024289 -
/commons/proper/daemon/trunk/src/native/windows/src/javajni.c
Author: mturk
Date: Tue Oct 19 15:51:36 2010
New Revision: 1024289
URL: http://svn.apache.org/viewvc?rev=1024289&view=rev
Log:
Don't make things slower then they are actually :)
Modified:
commons/proper/daemon/trunk/src/native/windows/src/javajni.c
Modified: commons/proper/daemon/trunk/src/native/windows/src/javajni.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/javajni.c?rev=1024289&r1=1024288&r2=1024289&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/javajni.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/javajni.c Tue Oct 19 15:51:36 2010
@@ -911,8 +911,13 @@ apxJavaStart(LPAPXJAVA_THREADARGS pArgs)
return FALSE;
}
ResumeThread(lpJava->hWorkerThread);
- /* Give some time to initialize the thread */
- Sleep(1000);
+ if (lstrcmpA(lpJava->clWorker.sClazz, "java/lang/System")) {
+ /* Give some time to initialize the thread
+ * Unless we are calling System.exit(0).
+ * This will be hanled by _onexit hook.
+ */
+ Sleep(1000);
+ }
return TRUE;
}