On 08/11/2014 03:34 AM, arei.gonglei@huawei.com wrote: > From: Gonglei > > 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 > Signed-off-by: Gonglei > --- > qemu-char.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org