From: Ian Campbell Subject: Re: libxl: copy & paste bug Date: Tue, 5 Oct 2010 11:08:18 +0100 Message-ID: <1286273298.23155.7580.camel@zakaz.uk.xensource.com> References: <201010051205.39864.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201010051205.39864.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: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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. Ian.