Received: from eggs.gnu.org ([2001:4830:134:3::10]:55023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNSEL-0001KK-Az for qemu-devel@nongnu.org; Tue, 11 Mar 2014 15:20:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNSEF-0006fO-Cb for qemu-devel@nongnu.org; Tue, 11 Mar 2014 15:20:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNSEF-0006fG-44 for qemu-devel@nongnu.org; Tue, 11 Mar 2014 15:20:43 -0400 Message-ID: <1394565655.3981.61.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Tue, 11 Mar 2014 21:20:55 +0200 In-Reply-To: <20140311185141.GD512@stefanha-thinkpad.redhat.com> References: <1394542834-31741-1-git-send-email-marcel.a@redhat.com> <20140311185141.GD512@stefanha-thinkpad.redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V4] tests/libqtest: Fix possible deadlock in qtest initialization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kwolf@redhat.com, stefanha@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com, aliguori@amazon.com, afaerber@suse.de On Tue, 2014-03-11 at 19:51 +0100, Stefan Hajnoczi wrote: > On Tue, Mar 11, 2014 at 03:00:34PM +0200, Marcel Apfelbaum wrote: > > 'socket_accept' waits for Qemu to init its unix socket. > > If Qemu encounters an error during command line parsing, > > it can exit before initializing the communication channel. > > > > Using a timeout for sockets fixes the issue. > > > > Reviewed-by: Eric Blake > > Signed-off-by: Marcel Apfelbaum > > --- > > tests/libqtest.c | 13 +++++++++++-- > > 1 file changed, 11 insertions(+), 2 deletions(-) > > Reviewed-by: Stefan Hajnoczi Thanks for the help, Stefan! Please be aware that until you take care of the "abort during qtest_init" issue, qtest will crash on such occasions. Last thing, which maintainer should take this? Thanks, Marcel