]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: Be nicer to killing QEMU when probing caps
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Feb 2022 09:33:20 +0000 (10:33 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Mar 2022 16:00:06 +0000 (17:00 +0100)
commitdb7b0b12b7b07b8a0313161e3cbedb38a74e5954
treee783d31950ded3e4cf71bcdc641d91588732129c
parente4327557a41d97ad728b0b4d6d1815995ec192ec
qemu_process: Be nicer to killing QEMU when probing caps

The qemuProcessQMPStop() function is intended to kill this dummy
QEMU process we started only for querying capabilities.
Nevertheless, it may be not plain QEMU binary we executed, but
in fact it may be a memcheck tool (e.g. valgrind) that executes
QEMU later. By switching to virProcessKillPainfully() we allow
this wrapper tool to exit gracefully.

Another up side is that virProcessKillPainfully() reports an
error so no need for us to VIR_ERROR() ourselves.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_process.c