Browse Source

Destroy the process in case the thread is interrupted

otherwise it may run forever.
PR: 10345
Submitted by: Hal.Hildebrand@hellblazer.com (Hal Hildebrand)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273160 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
15c3ec9b26
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/Execute.java

+ 3
- 1
src/main/org/apache/tools/ant/taskdefs/Execute.java View File

@@ -466,7 +466,9 @@ public class Execute {
try {
process.waitFor();
setExitValue(process.exitValue());
} catch (InterruptedException e) {}
} catch (InterruptedException e) {
process.destroy();
}
}

protected void setExitValue(int value) {


Loading…
Cancel
Save