vhost-user-scsi: simplify unix path cleanup
commit245792ddb71df93ef4f8b25834734c8dfa17af9e
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 16 Aug 2017 19:05:20 +0000 (16 21:05 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 10 Oct 2017 21:31:09 +0000 (10 23:31 +0200)
treeac7011e32e95bea8209799469028fd47ce9c2287
parent4309251a8c67c0893489dea18b30cc48f859c9fd
vhost-user-scsi: simplify unix path cleanup

Always remove the unix path when leaving the program (instead of when
freeing scsi_dev). Note that unix_sock_new() also unlink() exisiting
path before creating the socket.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
contrib/vhost-user-scsi/vhost-user-scsi.c