integrated winp so that Hudson can kill processes recursively on Windows.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7016 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-02-08 06:17:02 +00:00
1 parent 66f9720fde
commit bda15d2acb
4 files changed
+31 -4

No files matched your search

+6 -1
View File
@@ -21,6 +21,8 @@ import java.io.BufferedOutputStream;
import java.util.Map;
import java.util.Arrays;
import org.jvnet.winp.WinProcess;
/**
* Starts a process.
*
@@ -310,7 +312,10 @@ public abstract class Launcher {
*/
protected synchronized void terminate(IOException e) {
super.terminate(e);
proc.destroy();
if(Hudson.isWindows())
new WinProcess(proc).killRecursively();
else
proc.destroy();
}
public synchronized void close() throws IOException {