commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1198005 - in /commons/proper/daemon/trunk: RELEASE-NOTES.txt src/native/windows/apps/prunsrv/prunsrv.c
Date Sat, 05 Nov 2011 18:43:59 GMT
Author: mturk
Date: Sat Nov  5 18:43:59 2011
New Revision: 1198005

URL: http://svn.apache.org/viewvc?rev=1198005&view=rev
Log:
DAEMON-195: Do not wait on stop thread to finish. If Java stop method calls System.exit method
will never return to the manager and this will be reported as broken pipe

Modified:
    commons/proper/daemon/trunk/RELEASE-NOTES.txt
    commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c

Modified: commons/proper/daemon/trunk/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/RELEASE-NOTES.txt?rev=1198005&r1=1198004&r2=1198005&view=diff
==============================================================================
--- commons/proper/daemon/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/daemon/trunk/RELEASE-NOTES.txt Sat Nov  5 18:43:59 2011
@@ -80,8 +80,8 @@ NEW FEATURES:
 
 BUG FIXES:
 
-1.0.8: DAEMON-215, DAEMON-218, DAEMON-219, DAEMON-220, DAEMON-222, DAEMON-223,
-       DAEMON-224
+1.0.8: DAEMON-195, DAEMON-215, DAEMON-218, DAEMON-219, DAEMON-220, DAEMON-222,
+       DAEMON-223, DAEMON-224
 
 1.0.7: DAEMON-211, DAEMON-214
 

Modified: commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c?rev=1198005&r1=1198004&r2=1198005&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c Sat Nov  5 18:43:59
2011
@@ -1267,7 +1267,12 @@ void WINAPI service_ctrl_handler(DWORD d
                                       serviceStop,
                                       (LPVOID)SERVICE_CONTROL_STOP,
                                       0, &threadId);
+#if 0
+            /* Seems we don't need to wait for the stop thread
+             * to finish
+             */
             WaitForSingleObject(stopThread, INFINITE);
+#endif
             CloseHandle(stopThread);
 
             return;



Mime
View raw message