From: Ian Jackson Subject: Re: [PATCH V2] libxl_qmp: Handle unexpected end-of-socket Date: Mon, 20 Feb 2012 17:53:40 +0000 Message-ID: <20290.34980.888263.207716@mariner.uk.xensource.com> References: <1329758916-25379-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1329758916-25379-1-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Anthony PERARD Cc: Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Anthony PERARD writes ("[Xen-devel] [PATCH V2] libxl_qmp: Handle unexpected end-of-socket"): > When read() return 0, the current code just tries again. But this leads to an > infinite loop if QEMU died too soon. > > Also, retry select if a signal was caught. > > Signed-off-by: Anthony PERARD Acked-by: Ian Jackson Committed-by: Ian Jackson