[PATCH v6 17/33] qemu_process: Cleanup qemuProcessQMPStop function

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

 



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@xxxxxxxxxx>
---
 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

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

  Powered by Linux