Received: from eggs.gnu.org ([2001:4830:134:3::10]:44630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFm4a-0003Yh-FZ for qemu-devel@nongnu.org; Tue, 18 Feb 2014 09:55:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFm4U-0005kw-Cm for qemu-devel@nongnu.org; Tue, 18 Feb 2014 09:55:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFm4U-0005ke-51 for qemu-devel@nongnu.org; Tue, 18 Feb 2014 09:54:54 -0500 From: Stefan Hajnoczi Date: Tue, 18 Feb 2014 15:54:46 +0100 Message-Id: <1392735289-19484-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [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: qemu-devel@nongnu.org Cc: Paolo Bonzini , Markus Armbruster , Anthony Liguori , Andreas Faerber 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(-) --=20 1.8.5.3