mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
qtest: don't report signals if qtest driver enabled
qtest driver always uses signals to kill qemu no need to report it, whatever the accelerator state. Add API to detect qtest driver, and suppress reporting signals in this case. Reported-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
f673e70ccc
commit
b3be57c358
3 changed files with 8 additions and 1 deletions
2
vl.c
2
vl.c
|
@ -1750,7 +1750,7 @@ static int qemu_shutdown_requested(void)
|
|||
|
||||
static void qemu_kill_report(void)
|
||||
{
|
||||
if (!qtest_enabled() && shutdown_signal != -1) {
|
||||
if (!qtest_driver() && shutdown_signal != -1) {
|
||||
fprintf(stderr, "qemu: terminating on signal %d", shutdown_signal);
|
||||
if (shutdown_pid == 0) {
|
||||
/* This happens for eg ^C at the terminal, so it's worth
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue