[libvirt] [PATCH] bug in vboxDomainDestroy in vbox driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

There is bug in vboxDomainDestroy() where in the while powerdown the method 
doesn't wait till its completion.
Fix in the attached patch.

Regards,
Pritesh
diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c
index 07515fe..65e3449 100644
--- a/src/vbox/vbox_tmpl.c
+++ b/src/vbox/vbox_tmpl.c
@@ -1333,8 +1333,10 @@ static int vboxDomainDestroy(virDomainPtr dom) {
 #else
                 IProgress *progress;
                 console->vtbl->PowerDown(console, &progress);
-                if (progress)
+                if (progress) {
+                    progress->vtbl->WaitForCompletion(progress, -1);
                     progress->vtbl->nsisupports.Release((nsISupports *)progress);
+                }
 #endif
                 console->vtbl->nsisupports.Release((nsISupports *)console);
                 ret = 0;
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]