ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Execute.java
Date Tue, 23 Jul 2002 19:33:44 GMT
sbailliez    2002/07/23 12:33:44

  Modified:    src/main/org/apache/tools/ant/taskdefs Execute.java
  Log:
  Destroy the process in case the thread is interrupted
  otherwise it may run forever.
  PR: 10345
  Submitted by: Hal.Hildebrand@hellblazer.com (Hal Hildebrand)
  
  Revision  Changes    Path
  1.46      +4 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Execute.java
  
  Index: Execute.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Execute.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- Execute.java	22 Jun 2002 23:38:31 -0000	1.45
  +++ Execute.java	23 Jul 2002 19:33:43 -0000	1.46
  @@ -466,7 +466,9 @@
           try {
               process.waitFor();
               setExitValue(process.exitValue());
  -        } catch (InterruptedException e) {}
  +        } catch (InterruptedException e) {
  +            process.destroy();
  +        }
       }
   
       protected void setExitValue(int value) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message