diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-03-08 15:04:46 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2019-03-12 21:22:31 -0400 |
| commit | 6079865526474dea7d8680ed2cf0b6d15ac6e99f (patch) | |
| tree | 527984ba26d353cc5ffe15b4e51f6af45b644d8e /hw/virtio/vhost-user.c | |
| parent | 0b99f22461e59ec7a31c75ebc4c057a45dd9e9a5 (diff) | |
| download | focaccia-qemu-6079865526474dea7d8680ed2cf0b6d15ac6e99f.tar.gz focaccia-qemu-6079865526474dea7d8680ed2cf0b6d15ac6e99f.zip | |
libvhost-user: exit by default on VHOST_USER_NONE
Since commit 2566378d6d13bf4d28c7770bdbda5f7682594bbe, libvhost-user no longer panics on disconnect (rc == 0), and instead silently ignores an invalid VHOST_USER_NONE message. Without extra work from the API user, this will simply busy-loop on HUP events. The obvious thing to do is to exit(0) instead, while additional or different work can be done by overriding iface->process_msg(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Jens Freimann <jfreimann@redhat.com> Message-Id: <20190308140454.32437-5-marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-user.c')
0 files changed, 0 insertions, 0 deletions