Uri Lublin 17489dd7e9 migrate_fd_close: delete associated io-handler before closing the fd
It may happen that the io-handler is still registered. That causes
select() to return with EBADF, not calling handlers for other fds.

The io-handler would be registered when (on the source) the whole state
was written but not yet flushed. For example when using QEMUFileBuffered,
(tcp-migration) there may be data left in a buffer waiting to be transferred.
In such a case buffered_close() calls buffered_flush() which calls
migrate_fd_put_buffer, which may, upon EAGAIN, register migrate_fd_put_notify
as a handler.

(cherry picked from commit e19252d32c45e92c919109ec32616382eb2afe6b)

Signed-off-by: Uri Lublin <uril@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-06-16 17:11:19 -05:00
2009-05-28 02:04:20 -05:00
2009-02-09 23:19:44 +00:00
2009-05-15 21:43:31 +02:00
2009-03-03 06:12:14 +00:00
2009-01-14 19:40:27 +00:00
2009-01-22 17:15:25 +00:00
2008-12-13 09:32:43 +00:00
2009-05-08 15:57:33 -05:00
2009-01-05 18:11:53 +00:00
2009-05-08 15:54:06 -05:00
2009-01-14 18:39:49 +00:00
2009-01-14 18:39:49 +00:00
2009-05-20 15:42:42 -05:00
2009-02-05 21:23:54 +00:00
2009-02-09 19:58:22 +00:00
2009-02-08 17:17:52 +00:00
2008-12-14 08:50:18 +00:00
2009-06-16 17:11:02 -05:00
2008-11-30 16:25:37 +00:00
2009-01-05 18:11:53 +00:00
2009-05-28 02:02:04 -05:00
2008-12-11 19:39:56 +00:00
2009-01-24 18:19:25 +00:00
2009-01-14 18:39:49 +00:00
2009-02-11 21:00:32 +00:00
2009-01-14 18:34:22 +00:00
2008-12-14 08:50:18 +00:00
2008-12-13 09:32:43 +00:00
2008-12-14 08:53:17 +00:00
2008-12-04 11:29:42 +00:00
2009-05-20 15:42:42 -05:00
2009-02-09 23:19:32 +00:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%