]> Git Repo - qemu.git/blobdiff - migration-unix.c
pckbd: improve debugging
[qemu.git] / migration-unix.c
index b7aab3843aa44138e5f6a72456692c76e4cc7d03..49de1b9e84353dfc454cbf6d62046b0af29a333a 100644 (file)
@@ -176,13 +176,14 @@ static void unix_accept_incoming_migration(void *opaque)
     qemu_announce_self();
     DPRINTF("successfully loaded vm state\n");
 
-    /* we've successfully migrated, close the server socket */
-    qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL);
-    close(s);
+    if (autostart)
+        vm_start();
 
 out_fopen:
     qemu_fclose(f);
 out:
+    qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL);
+    close(s);
     close(c);
 }
 
This page took 0.023674 seconds and 4 git commands to generate.