qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] tests/libqtest: fix cleanup of QEMU processes and add robustness
@ 2022-05-13 15:49 Daniel P. Berrangé
  2022-05-13 15:49 ` [PATCH v2 1/2] tests/qtest: fix registration of ABRT handler for QEMU cleanup Daniel P. Berrangé
  2022-05-13 15:49 ` [PATCH v2 2/2] tests/qtest: use prctl(PR_SET_PDEATHSIG) as fallback to kill QEMU Daniel P. Berrangé
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel P. Berrangé @ 2022-05-13 15:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, Paolo Bonzini, Laurent Vivier,
	Daniel P. Berrangé

This fixes the existing logic that was supposed to be cleaning up
running QEMU processes when g_assert fires. It then further adds
use of a Linux specific prctl as a safety net if the ABRT handler
couldn't convince QEMU to quit with SIGTERM, or if the test program
crashes with SEGV.

Daniel P. Berrangé (2):
  tests/qtest: fix registration of ABRT handler for QEMU cleanup
  tests/qtest: use prctl(PR_SET_PDEATHSIG) as fallback to kill QEMU

 tests/qtest/libqtest.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

-- 
2.36.1




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

end of thread, other threads:[~2022-05-13 16:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-13 15:49 [PATCH v2 0/2] tests/libqtest: fix cleanup of QEMU processes and add robustness Daniel P. Berrangé
2022-05-13 15:49 ` [PATCH v2 1/2] tests/qtest: fix registration of ABRT handler for QEMU cleanup Daniel P. Berrangé
2022-05-13 16:08   ` Thomas Huth
2022-05-13 15:49 ` [PATCH v2 2/2] tests/qtest: use prctl(PR_SET_PDEATHSIG) as fallback to kill QEMU Daniel P. Berrangé
2022-05-13 16:09   ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).