From b0e7dd98d1d45dbaa7ec3c751781ce1182a4c7b6 Mon Sep 17 00:00:00 2001 From: ribeaudc <ribeaudc> Date: Wed, 4 Jun 2008 12:54:26 +0000 Subject: [PATCH] minor: - Comment added to explain tricky code. SVN: 6453 --- .../ch/systemsx/cisd/common/process/ProcessExecutionHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/source/java/ch/systemsx/cisd/common/process/ProcessExecutionHelper.java b/common/source/java/ch/systemsx/cisd/common/process/ProcessExecutionHelper.java index 3584dc021ca..e301399d508 100644 --- a/common/source/java/ch/systemsx/cisd/common/process/ProcessExecutionHelper.java +++ b/common/source/java/ch/systemsx/cisd/common/process/ProcessExecutionHelper.java @@ -418,6 +418,8 @@ public final class ProcessExecutionHelper { final Future<ProcessResult> killerFuture = executor.submit(new ProcessKiller()); processResult = ConcurrencyUtilities.getResult(killerFuture, SHORT_TIMEOUT); + // If the process killer did not find anything to kill, then try to get the original + // process result. We could have had a raise condition here. if (processResult.tryGetResult() == null) { processResult = -- GitLab