]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
qemu_agent: Output newline at the end of the sync JSON message
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Jul 2013 15:52:33 +0000 (17:52 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jul 2013 12:25:43 +0000 (14:25 +0200)
Although this isn't apparently needed for the guest agent itself, the
test I will be adding later depends on the newline as a separator of
messages to process.

src/qemu/qemu_agent.c

index 72bf211cc78d3c2c51924601e70c4caf0475f1fe..1607e88c0ef4735cd56eba126e620649890c0a88 100644 (file)
@@ -918,7 +918,7 @@ qemuAgentGuestSync(qemuAgentPtr mon)
 
     if (virAsprintf(&sync_msg.txBuffer,
                     "{\"execute\":\"guest-sync\", "
-                    "\"arguments\":{\"id\":%llu}}", id) < 0)
+                    "\"arguments\":{\"id\":%llu}}\n", id) < 0)
         return -1;
 
     sync_msg.txLength = strlen(sync_msg.txBuffer);