提交 834d7d16 编写于 作者: K kohsuke

added more logging

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19793 71c3de6d-444a-0410-be80-ed276b4c234a
上级 958c14c2
......@@ -303,10 +303,12 @@ public abstract class ProcessTree implements Iterable<OSProcess> {
}
public void killRecursively() {
LOGGER.finer("Killing recursively "+p.getPid());
p.killRecursively();
}
public void kill() {
LOGGER.finer("Killing "+p.getPid());
p.kill();
}
......@@ -336,16 +338,22 @@ public abstract class ProcessTree implements Iterable<OSProcess> {
if(p.getPid()<10)
continue; // ignore system processes like "idle process"
LOGGER.finest("Considering to kill "+p.getPid());
boolean matched;
try {
matched = p.hasMatchingEnvVars(modelEnvVars);
} catch (WinpException e) {
// likely a missing privilege
LOGGER.log(FINEST," Failed to check environment variable match",e);
continue;
}
if(matched)
p.killRecursively();
else
LOGGER.finest("Environment variable didn't match");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册