]> git.proxmox.com Git - qemu.git/commit
iov: handle partial writes from sendmsg and recvmsg
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 Mar 2013 16:36:31 +0000 (17:36 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Apr 2013 09:43:45 +0000 (11:43 +0200)
commit83f75c26e8e791311900d0e2a4cc9379abedb85c
tree691a4afcbe0ca292576057bd5b67691301082db1
parentf48869ad2825b640911666bb091cedb1e1d6ad5e
iov: handle partial writes from sendmsg and recvmsg

Partial writes can still happen in sendmsg and recvmsg, if a
signal is received in the middle of a write.  To handle this,
retry the operation with a new offset/bytes pair.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Orit Wassermann <owasserm@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/iov.c