Received: from eggs.gnu.org ([2001:4830:134:3::10]:43006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFnaz-0000ER-LB for qemu-devel@nongnu.org; Tue, 18 Feb 2014 11:32:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFnat-0005WH-LO for qemu-devel@nongnu.org; Tue, 18 Feb 2014 11:32:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFnat-0005WA-DZ for qemu-devel@nongnu.org; Tue, 18 Feb 2014 11:32:27 -0500 From: Markus Armbruster References: <1392735289-19484-1-git-send-email-stefanha@redhat.com> Date: Tue, 18 Feb 2014 17:32:22 +0100 In-Reply-To: <1392735289-19484-1-git-send-email-stefanha@redhat.com> (Stefan Hajnoczi's message of "Tue, 18 Feb 2014 15:54:46 +0100") Message-ID: <87wqgs2xgp.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 0/3] qtest: avoid pidfile and QEMU process leaks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Paolo Bonzini , qemu-devel@nongnu.org, Anthony Liguori , Andreas Faerber Stefan Hajnoczi writes: > v2: > * Don't call qtest_end() from SIGABRT handler to avoid reentrancy [Paolo] > * Use sigemptyset() to avoid assumption about signal mask [Markus] > * if (fd !=3D -1) close(fd) is no longer necessary [Markus] > > This series prevents the following qtest issues: > > 1. Leaking the pidfile if QEMU startup fails, as discovered by Andreas F= =C3=A4rber. > 2. Leaking the QEMU process when a test case aborts. > > Applying this series should make buildbots and manual "make check" users = have a > more pleasant and less leaky experience :). > > Stefan Hajnoczi (3): > qtest: drop unused child_pid field > qtest: make QEMU our direct child process > qtest: kill QEMU process on g_assert() failure > > tests/libqtest.c | 59 +++++++++++++++++++++++++-------------------------= ------ > 1 file changed, 26 insertions(+), 33 deletions(-) Reviewed-by: Markus Armbruster