qemuProcessQMPStop is one of the 4 public functions used to create and
manage a Qemu process for QMP command exchanges.
Add comment header and debug message.
Signed-off-by: Chris Venteicher <cventeic(a)redhat.com>
---
src/qemu/qemu_process.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 58842a0f1c..fb14ed35f9 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -8459,12 +8459,21 @@ qemuProcessQMPStart(qemuProcessQMPPtr proc)
}
+/**
+ * qemuProcessStop:
+ * @proc: Stores process and connection state
+ *
+ * Stop monitor connection and QEMU process
+ */
void
qemuProcessQMPStop(qemuProcessQMPPtr proc)
{
if (!proc)
return;
+ VIR_DEBUG("proc=%p emulator=%s mon=%p pid=%lld",
+ proc, proc->binary, proc->mon, (long long)proc->pid);
+
if (proc->mon) {
virObjectUnlock(proc->mon);
qemuMonitorClose(proc->mon);
--
2.17.1