From: "Daniel P. Berrangé" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Thomas Huth" <thuth@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>
Subject: [PATCH v2 0/2] tests/libqtest: fix cleanup of QEMU processes and add robustness
Date: Fri, 13 May 2022 16:49:04 +0100 [thread overview]
Message-ID: <20220513154906.206715-1-berrange@redhat.com> (raw)
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
next reply other threads:[~2022-05-13 15:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-13 15:49 Daniel P. Berrangé [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220513154906.206715-1-berrange@redhat.com \
--to=berrange@redhat.com \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.