On 08/11/2014 03:34 AM, arei.gong...@huawei.com wrote: > From: Gonglei <arei.gong...@huawei.com> > > Technically, fcntl(soc, F_SETFL, O_NONBLOCK) > is incorrect since it clobbers all other file flags. > We can use F_GETFL to get the current flags, set or > clear the O_NONBLOCK flag, then use F_SETFL to set the flags. > > Using the qemu_set_nonblock() wrapper. > > Signed-off-by: Wangxin <wangxinxin.w...@huawei.com> > Signed-off-by: Gonglei <arei.gong...@huawei.com> > --- > qemu-char.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature