From: Stefano Stabellini Subject: Re: libxl: copy & paste bug Date: Tue, 5 Oct 2010 14:22:39 +0100 Message-ID: References: <201010051205.39864.Christoph.Egger@amd.com> <1286273298.23155.7580.camel@zakaz.uk.xensource.com> <201010051247.38806.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <201010051247.38806.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: Ian Campbell , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 5 Oct 2010, Christoph Egger wrote: > On Tuesday 05 October 2010 12:08:18 Ian Campbell wrote: > > On Tue, 2010-10-05 at 11:05 +0100, Christoph Egger wrote: > > > Hi! > > > > > > In tools/libxl/libxl_bootloader.c, at the end of the > > > function libxl_run_bootloader() are the following lines: > > > > > > if (fifo_fd > -1) > > > close(fifo_fd); > > > if (bootloader_fd > -1) > > > close(bootloader_fd); > > > if (xenconsoled_fd > -1) > > > close(xenconsoled_fd); > > > if (xenconsoled_slave > -1) > > > close(xenconsoled_fd); > > > > > > The last line is wrong. It should be: > > > > > > close(xenconsoled_slave); > > > > Indeed. Please can you post a patch. > > Attached. applied, thanks