]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: virtiofs: kill the whole process group
authorJán Tomko <jtomko@redhat.com>
Tue, 3 Aug 2021 14:56:41 +0000 (16:56 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 5 Aug 2021 09:18:13 +0000 (11:18 +0200)
Send TERM/KILL to virtiofsd and its child processes too
and do not exit until they are all dead.

https://bugzilla.redhat.com/show_bug.cgi?id=1940276

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Tested-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
src/qemu/qemu_virtiofs.c

index edaedf03044ceb04f5a00ac04b9858442bd381da..15c05479c8d8989dd64d51779f4621972268a4a0 100644 (file)
@@ -281,7 +281,7 @@ qemuVirtioFSStop(virQEMUDriver *driver G_GNUC_UNUSED,
     if (!(pidfile = qemuVirtioFSCreatePidFilename(vm, fs->info.alias)))
         goto cleanup;
 
-    if (virPidFileForceCleanupPath(pidfile) < 0) {
+    if (virPidFileForceCleanupPathFull(pidfile, true) < 0) {
         VIR_WARN("Unable to kill virtiofsd process");
     } else {
         if (QEMU_DOMAIN_FS_PRIVATE(fs)->vhostuser_fs_sock)