mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
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:
1 parent
66f9720fde
commit
bda15d2acb
4 files changed
+31
-4
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user