Skip to content
Snippets Groups Projects
Commit 3cf09da3 authored by brinn's avatar brinn
Browse files

fix: a bug introduced with the unblocking operation where we would report that...

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
parent 9ad4b01b
No related branches found
No related tags found
No related merge requests found
...@@ -332,11 +332,7 @@ public final class ProcessExecutionHelper ...@@ -332,11 +332,7 @@ public final class ProcessExecutionHelper
{ {
processWrapper.set(process); processWrapper.set(process);
final int exitValue = process.waitFor(); final int exitValue = process.waitFor();
if (processWrapper.getAndSet(null) == null) processWrapper.set(null);
{
// Value is irrelevant, the ProcessKiller got us.
return null;
}
List<String> processOutput = null; List<String> processOutput = null;
if (OutputReadingStrategy.ALWAYS.equals(outputReadingStrategy) if (OutputReadingStrategy.ALWAYS.equals(outputReadingStrategy)
|| (OutputReadingStrategy.ON_ERROR.equals(outputReadingStrategy) && ProcessResult || (OutputReadingStrategy.ON_ERROR.equals(outputReadingStrategy) && ProcessResult
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment