You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by kr...@apache.org on 2012/02/28 12:45:34 UTC
svn commit: r1294592 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java
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);