From 3cf09da3acb2d82de2238382ab107009724d85a9 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Sat, 5 Jul 2008 15:21:50 +0000 Subject: [PATCH] fix: a bug introduced with the unblocking operation where we would report that the thread has been interrupted when actually the process got terminated SVN: 7063 --- .../cisd/common/process/ProcessExecutionHelper.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 d8be0b73dd6..f32d29e9656 100644 --- a/common/source/java/ch/systemsx/cisd/common/process/ProcessExecutionHelper.java +++ b/common/source/java/ch/systemsx/cisd/common/process/ProcessExecutionHelper.java @@ -332,11 +332,7 @@ public final class ProcessExecutionHelper { processWrapper.set(process); final int exitValue = process.waitFor(); - if (processWrapper.getAndSet(null) == null) - { - // Value is irrelevant, the ProcessKiller got us. - return null; - } + processWrapper.set(null); List<String> processOutput = null; if (OutputReadingStrategy.ALWAYS.equals(outputReadingStrategy) || (OutputReadingStrategy.ON_ERROR.equals(outputReadingStrategy) && ProcessResult -- GitLab