]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Introduce flags to virCHProcessStop()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Sep 2025 13:22:07 +0000 (15:22 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Sep 2025 06:35:17 +0000 (08:35 +0200)
commite635b6a6f72be019d793c52e2b0ebf221c9914a1
treea67015a10f21a5297fa2add5a3a30734fa6e8179
parentfc56f7279f20af3859414061af4e9cbada34b1f8
ch: Introduce flags to virCHProcessStop()

A caller (e.g. chDomainDestroyFlags()) might want to chose
whether to kill emulator process forcefully or gracefully (the
@force argument of virProcessKillPainfully()). Invent a flag to
virCHProcessStop() for this. And to keep consistent behaviour,
pass the flag everywhere for now.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/ch/ch_driver.c
src/ch/ch_events.c
src/ch/ch_process.c
src/ch/ch_process.h