[PATCH 8/8] ch: kill CH process if restore fails

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

 



Invoke virCHProcessStop to kill CH process incase of any failures during
restore operation.

Signed-off-by: Purna Pavan Chandra <paekkaladevi@xxxxxxxxxxxxxxxxxxx>
---
 src/ch/ch_process.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ch/ch_process.c b/src/ch/ch_process.c
index cb3539ebe5..acd542b24e 100644
--- a/src/ch/ch_process.c
+++ b/src/ch/ch_process.c
@@ -1031,5 +1031,7 @@ virCHProcessStartRestore(virCHDriver *driver, virDomainObj *vm, const char *from
  cleanup:
     if (tapfds)
         chCloseFDs(tapfds, ntapfds);
+    if (ret)
+        virCHProcessStop(driver, vm, VIR_DOMAIN_SHUTOFF_FAILED);
     return ret;
 }
-- 
2.34.1



[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]

  Powered by Linux