From 55becf0d25e15856378b0642f50caaa7e10fc9b7 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 13 Oct 2009 15:42:30 +0000
Subject: [PATCH] Follow up to the fix for issue 4276 (java detection message cut off in the install log). Improve the code to avoid synchronisation problems.
---
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java b/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
index 3e0a4c3..6a77442 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -207,10 +207,13 @@
try
{
Thread.sleep(3000);
- process.destroy();
+ // To see if the process is over, call the exitValue method.
+ // If it is not over, a IllegalThreadStateException.
+ process.exitValue();
}
catch (Throwable t)
{
+ process.destroy();
}
}
});
--
Gitblit v1.10.0