Invoke virCHProcessStop to kill CH process incase of any failures during
restore operation.
Signed-off-by: Purna Pavan Chandra <paekkaladevi(a)linux.microsoft.com>
---
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