Return path: socket_writev_buffer: Block even on non-blocking fd's
commit3e4097b564386b1fd1b62f2cd20e056d4b3403da
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 5 Nov 2015 18:10:44 +0000 (5 18:10 +0000)
committerJuan Quintela <quintela@redhat.com>
Tue, 10 Nov 2015 14:00:25 +0000 (10 15:00 +0100)
tree6296a68cabab71cb0ecab0979e53a9cbc1eddda3
parentadc468e9b9ad866cd95b1e567291f9dcc1f49f1c
Return path: socket_writev_buffer: Block even on non-blocking fd's

The destination sets the fd to non-blocking on incoming migrations;
this also affects the return path from the destination, and thus we
need to make sure we can safely write to the return path.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/qemu-file-unix.c