char: add and use tcp_chr_wait_connected
commitd7a04fd7d500870ad70f15089c6590e4bea73e70
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 26 Jul 2016 21:15:18 +0000 (27 01:15 +0400)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Jul 2016 21:33:48 +0000 (29 00:33 +0300)
tree3ca43355f0c71c95b55c0e6f613557cc10bf0adb
parent6b6723c3b508403309aa21c4fcbe515bd1edfd74
char: add and use tcp_chr_wait_connected

Add a chr_wait_connected for the tcp backend, and use it in the
open_socket() function.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
qemu-char.c