Luiz Capitulino 540c79fec9 migration: don't rely on any QERR_SOCKET_*
Use the in_progress argument for QERR_SOCKET_CONNECT_IN_PROGRESS. The
other errors are handled the same by checking if the error is set and
then calling migrate_fd_error() if it's.

It's also necessary to change inet_connect_opts() not to set
QERR_SOCKET_CONNECT_IN_PROGRESS. This error is only used by
tcp_start_outgoing_migration() and not changing it along with the
usage of in_progress would break migration.

Furthermore this commit fixes a bug. Today, there's a spurious error
report when migration succeeds:

(qemu) migrate tcp:0:4444
migrate: Connection can not be completed immediately
(qemu)

After this commit no spurious error is reported anymore.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
2012-08-13 13:20:39 -03:00
2012-08-13 11:20:41 +02:00
2012-08-09 18:34:57 +00:00
2012-07-23 11:55:17 +01:00
2012-08-13 11:20:41 +02:00
2012-08-09 18:34:57 +00:00
2012-08-06 19:31:55 -05:00
2012-07-10 18:27:33 +02:00
2012-07-07 09:04:42 +00:00
2012-08-04 15:51:23 +00:00
2012-08-06 22:39:14 +02:00
2012-06-29 13:31:07 +02:00
2012-08-02 18:12:17 +02:00
2012-07-26 17:44:08 +02:00
2012-07-28 09:23:11 +00:00
2012-07-23 11:55:17 +01:00
2012-06-25 15:37:15 +02:00
2012-08-11 12:23:46 +00:00
2012-07-27 21:13:04 +00:00
2012-07-13 13:46:55 -03:00
2012-08-11 12:21:20 +00:00
2012-06-29 13:27:28 +02:00
2012-08-03 18:28:37 -05:00
2012-07-10 18:27:33 +02:00
2012-07-14 11:53:03 +00:00
2012-07-14 11:53:03 +00:00
2012-08-09 18:34:57 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
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%