char: ensure all clients are in non-blocking mode
commit64c800f808748522727847b9cdc73412f22dffb9
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 18 Mar 2016 18:00:41 +0000 (18 18:00 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Apr 2016 09:46:52 +0000 (5 11:46 +0200)
tree7cb3f4764511a0d85d19e1dae392e75dc31c6d20
parent53628efbc8aa7a7ab5354d24b971f4d69452151d
char: ensure all clients are in non-blocking mode

Only some callers of tcp_chr_new_client are putting the
socket client into non-blocking mode. Move the call to
qio_channel_set_blocking() into the tcp_chr_new_client
method to guarantee that all code paths set non-blocking
mode

Reported-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Reported-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1458324041-22709-1-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c