提交 24e99923 编写于 作者: K Kohsuke Kawaguchi

close the log file at the end.

上级 f1ae45ac
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
package hudson.slaves; package hudson.slaves;
import hudson.model.*; import hudson.model.*;
import hudson.util.IOUtils;
import hudson.util.io.ReopenableRotatingFileOutputStream; import hudson.util.io.ReopenableRotatingFileOutputStream;
import jenkins.model.Jenkins.MasterComputer; import jenkins.model.Jenkins.MasterComputer;
import hudson.remoting.Channel; import hudson.remoting.Channel;
...@@ -470,6 +471,7 @@ public class SlaveComputer extends Computer { ...@@ -470,6 +471,7 @@ public class SlaveComputer extends Computer {
protected void kill() { protected void kill() {
super.kill(); super.kill();
closeChannel(); closeChannel();
IOUtils.closeQuietly(log);
} }
public RetentionStrategy getRetentionStrategy() { public RetentionStrategy getRetentionStrategy() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册