From b3be57c358b3186b675ce4452a030fd3d9f37be0 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Tue, 4 Feb 2014 20:06:47 +0200 Subject: qtest: don't report signals if qtest driver enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Michael S. Tsirkin Signed-off-by: Andreas Färber --- qtest.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qtest.c') diff --git a/qtest.c b/qtest.c index dcf1301229..a738afc724 100644 --- a/qtest.c +++ b/qtest.c @@ -528,3 +528,8 @@ void qtest_init(const char *qtest_chrdev, const char *qtest_log) qtest_chr = chr; } + +bool qtest_driver(void) +{ + return qtest_chr; +} -- cgit v1.2.1