db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1294592 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java
Date Tue, 28 Feb 2012 11:45:34 GMT
Author: kristwaa
Date: Tue Feb 28 11:45:34 2012
New Revision: 1294592

URL: http://svn.apache.org/viewvc?rev=1294592&view=rev
Log:
DERBY-5617: Improve process handling in SpawnedProcess

Make the timer thread run as a daemon thread.

Patch file: derby-5617-3a-timer_as_daemon_thread.diff

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java?rev=1294592&r1=1294591&r2=1294592&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java Tue
Feb 28 11:45:34 2012
@@ -143,8 +143,8 @@ public final class SpawnedProcess {
     private TimerTask scheduleKill(Process process, String name) {
         synchronized (KILL_THRESHOLD_PROPERTY) {
             if (KILL_TIMER == null) {
-                // Can't use 1.5 methods yet due to J2ME.
-                KILL_TIMER = new Timer();
+                // Can't use 1.5 methods yet due to J2ME. Add name later.
+                KILL_TIMER = new Timer(true);
             }        
         }
         TimerTask killer = new ProcessKillerTask(process, name);



Mime
View raw message