From 24e99923e3c593073e704a4e8ebf70d5ed11f313 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Tue, 15 Nov 2011 08:25:25 -0800 Subject: [PATCH] close the log file at the end. --- core/src/main/java/hudson/slaves/SlaveComputer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/hudson/slaves/SlaveComputer.java b/core/src/main/java/hudson/slaves/SlaveComputer.java index 666a4b9111..02e11a9824 100644 --- a/core/src/main/java/hudson/slaves/SlaveComputer.java +++ b/core/src/main/java/hudson/slaves/SlaveComputer.java @@ -24,6 +24,7 @@ package hudson.slaves; import hudson.model.*; +import hudson.util.IOUtils; import hudson.util.io.ReopenableRotatingFileOutputStream; import jenkins.model.Jenkins.MasterComputer; import hudson.remoting.Channel; @@ -470,6 +471,7 @@ public class SlaveComputer extends Computer { protected void kill() { super.kill(); closeChannel(); + IOUtils.closeQuietly(log); } public RetentionStrategy getRetentionStrategy() { -- GitLab