Skip to content

tests/libqtest: fix cleanup of QEMU processes and add robustness

Daniel P. Berrangé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests/qtest: fix registration of ABRT handler for QEMU cleanuptests/qtest/libqtest.c+2 -21 reply
2/2tests/qtest: use prctl(PR_SET_PDEATHSIG) as fallback to kill QEMUtests/qtest/libqtest.c+17 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchThomas Huth
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] tests/libqtest: fix cleanup of QEMU processes and add robustness

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(-)
Signature · 1 line
2.36.1