Revision cfaf6d36

b/migration-exec.c
120 120
    }
121 121
    qemu_announce_self();
122 122
    DPRINTF("successfully loaded vm state\n");
123
    /* we've successfully migrated, close the fd */
124
    qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, NULL, NULL, NULL);
123

  
125 124
    if (autostart)
126 125
        vm_start();
127 126

  
128 127
err:
128
    qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, NULL, NULL, NULL);
129 129
    qemu_fclose(f);
130 130
}
131 131

  
b/migration-fd.c
113 113
    }
114 114
    qemu_announce_self();
115 115
    DPRINTF("successfully loaded vm state\n");
116
    /* we've successfully migrated, close the fd */
117
    qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, NULL, NULL, NULL);
116

  
118 117
    if (autostart)
119 118
        vm_start();
120 119

  
121 120
err:
121
    qemu_set_fd_handler2(qemu_stdio_fd(f), NULL, NULL, NULL, NULL);
122 122
    qemu_fclose(f);
123 123
}
124 124

  
b/migration-tcp.c
170 170
    qemu_announce_self();
171 171
    DPRINTF("successfully loaded vm state\n");
172 172

  
173
    /* we've successfully migrated, close the server socket */
174
    qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL);
175
    close(s);
176 173
    if (autostart)
177 174
        vm_start();
178 175

  
179 176
out_fopen:
180 177
    qemu_fclose(f);
181 178
out:
179
    qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL);
180
    close(s);
182 181
    close(c);
183 182
}
184 183

  
b/migration-unix.c
176 176
    qemu_announce_self();
177 177
    DPRINTF("successfully loaded vm state\n");
178 178

  
179
    /* we've successfully migrated, close the server socket */
180
    qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL);
181
    close(s);
182 179

  
183 180
out_fopen:
184 181
    qemu_fclose(f);
185 182
out:
183
    qemu_set_fd_handler2(s, NULL, NULL, NULL, NULL);
184
    close(s);
186 185
    close(c);
187 186
}
188 187

  

Also available in: Unified diff