All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] qtest: avoid pidfile and QEMU process leaks
@ 2014-02-18 14:54 Stefan Hajnoczi
  2014-02-18 14:54 ` [Qemu-devel] [PATCH v2 1/3] qtest: drop unused child_pid field Stefan Hajnoczi
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2014-02-18 14:54 UTC (permalink / raw)
  To: qemu-devel
  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 != -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ärber.
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(-)

-- 
1.8.5.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-18 16:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-18 14:54 [Qemu-devel] [PATCH v2 0/3] qtest: avoid pidfile and QEMU process leaks Stefan Hajnoczi
2014-02-18 14:54 ` [Qemu-devel] [PATCH v2 1/3] qtest: drop unused child_pid field Stefan Hajnoczi
2014-02-18 14:54 ` [Qemu-devel] [PATCH v2 2/3] qtest: make QEMU our direct child process Stefan Hajnoczi
2014-02-18 14:54 ` [Qemu-devel] [PATCH v2 3/3] qtest: kill QEMU process on g_assert() failure Stefan Hajnoczi
2014-02-18 15:38   ` Paolo Bonzini
2014-02-18 16:32 ` [Qemu-devel] [PATCH v2 0/3] qtest: avoid pidfile and QEMU process leaks Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.