]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Move most of qemuProcessKill into virProcessKillPainfully
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 26 Sep 2012 14:42:58 +0000 (15:42 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 27 Sep 2012 09:11:44 +0000 (10:11 +0100)
commit8fd38231179c394f07d8a26bcbf3a0faa5eeaf24
tree275136c948d5ce15761158ba24bd2cafea4f3ea9
parentf1b4021b38f9485c50d386af6f682ecfc8025af5
Move most of qemuProcessKill into virProcessKillPainfully

In the cgroups APIs we have a virCgroupKillPainfully function
which does the loop sending SIGTERM, then SIGKILL and waiting
for the process to exit. There is similar functionality for
simple processes in qemuProcessKill, but it is tangled with
the QEMU code. Untangle it to provide a virProcessKillPainfuly
function

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/libvirt_private.syms
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/util/virprocess.c
src/util/virprocess.h