]> Git Repo - qemu.git/blobdiff - migration.c
add a boot parameter to set reboot timeout
[qemu.git] / migration.c
index 1edeec5ddd151f6e44ffde76743cdb5a4d2aff0a..22a05c437d978b40c12907f95368da3e223c3425 100644 (file)
@@ -240,7 +240,9 @@ static int migrate_fd_cleanup(MigrationState *s)
 {
     int ret = 0;
 
-    qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
+    if (s->fd != -1) {
+        qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
+    }
 
     if (s->file) {
         DPRINTF("closing file\n");
This page took 0.023364 seconds and 4 git commands to generate.