On 05/04/2018 04:53 AM, Dr. David Alan Gilbert (git) wrote:
From: "Dr. David Alan Gilbert" <dgilb...@redhat.com>

The response to a VHOST_USER_POSTCOPY_ADVISE contains a fd but doesn't

s/a fd/an fd/ ? Depends on whether you pronounce it "eff-dee" or "file-descriptor".

actually contain any data.   FIx vu_message_write so that it doesn't

s/FIx/Fix/

do a 0-byte write() call, since this was ending up with rc=0
that was confusing the error handling code.

Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
---
  contrib/libvhost-user/libvhost-user.c | 16 +++++++++-------
  1 file changed, 9 insertions(+), 7 deletions(-)

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to