Commit 3202beca authored by Orit Wasserman's avatar Orit Wasserman Committed by Anthony Liguori

Clear handler only for valid fd

Signed-off-by: default avatarOrit Wasserman <>
Signed-off-by: default avatarAnthony Liguori <>
parent 233aa5c2
......@@ -240,7 +240,9 @@ static int migrate_fd_cleanup(MigrationState *s)
int ret = 0;
if (s->fd != -1) {
qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
if (s->file) {
DPRINTF("closing file\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment