vhost-user: disconnect on start failure
commit0d572afd5266d1d67d132d06ea45d7246bcd6105
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 6 Jun 2016 16:45:03 +0000 (6 18:45 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 17 Jun 2016 00:28:02 +0000 (17 03:28 +0300)
treeaa746f7d66f74dcfd394c8fb7fec950efa488a5f
parent7d9d17f71e580218629a91f72eeef4db1c96b0ae
vhost-user: disconnect on start failure

If the backend failed to start (for example feature negociation failed),
do not exit, but disconnect the char device instead. Slightly more
robust for reconnect case.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Victor Kaplansky <victork@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vhost-user.c