提交 849942fc 编写于 作者: K kohsuke

fix for #246.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1881 71c3de6d-444a-0410-be80-ed276b4c234a
上级 e003b985
......@@ -228,7 +228,7 @@ public final class Slave implements Node, Serializable {
try {
listener.getLogger().println("Launching slave agent");
listener.getLogger().println("$ "+slave.agentCommand);
Process proc = Runtime.getRuntime().exec(slave.agentCommand);
final Process proc = Runtime.getRuntime().exec(slave.agentCommand);
// capture error information from stderr. this will terminate itself
// when the process is killed.
......@@ -242,6 +242,7 @@ public final class Slave implements Node, Serializable {
if(cause!=null)
cause.printStackTrace(listener.error("slave agent was terminated"));
channel = null;
proc.destroy();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册