WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xend: host.get_log() close fd

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: host.get_log() close fd
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Nov 2007 12:00:14 -0800
Delivery-date: Thu, 22 Nov 2007 12:01:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1195231437 0
# Node ID 1ad85cdcca3d99130ce3a74ab3203a3f14c25858
# Parent  e82fb0729b511446892a7be44031d06a0a640283
xend: host.get_log() close fd
Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py |    1 +
 1 files changed, 1 insertion(+)

diff -r e82fb0729b51 -r 1ad85cdcca3d tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Fri Nov 16 16:36:38 2007 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Fri Nov 16 16:43:57 2007 +0000
@@ -996,6 +996,7 @@ class XendAPI(object):
         log_buffer = log_file.read()
         log_buffer = log_buffer.replace('\b', ' ')
         log_buffer = log_buffer.replace('\f', '\n')
+        log_file.close()
         return xen_api_success(log_buffer)
 
     def host_send_debug_keys(self, _, host_ref, keys):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: host.get_log() close fd, Xen patchbot-unstable <=