migration: Clear fd also in error cases
commitcfaf6d36ae761da1033159d85d670706ffb24fb9
authorJuan Quintela <quintela@redhat.com>
Tue, 9 Mar 2010 23:10:35 +0000 (10 00:10 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 17 Mar 2010 16:16:15 +0000 (17 11:16 -0500)
treea5165f1ba834d1478cf407fd9d66dd1efb0dcc7c
parent0056dcc1146545e7c814db83b7b7b62e0c93ac68
migration: Clear fd also in error cases

Not clearing the fd and closing the file makes qemu spin using 100%CPU
after incoming migration error.

See for instance bug:
https://bugzilla.redhat.com/show_bug.cgi?id=518032

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
migration-exec.c
migration-fd.c
migration-tcp.c
migration-unix.c