[libvirt] [PATCH 03/10] qemu: agent: clear error flag upon init

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Tue Oct 4 06:56:07 UTC 2016


There were a few errors in the code when this flag was not
cleared upon monitor cleanup. All of them could be fixed
just resetting this flag upon agent monitor initialization.
---
 src/qemu/qemu_process.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 3637f4b..42f7f84 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -210,6 +210,8 @@ qemuConnectAgent(virQEMUDriverPtr driver, virDomainObjPtr vm)
     qemuAgentPtr agent = NULL;
     virDomainChrDefPtr config = qemuFindAgentConfig(vm->def);
 
+    priv->agentError = false;
+
     if (!config)
         return 0;
 
-- 
1.8.3.1




More information about the libvir-list mailing list