vhost_user_backend: Wait on the worker thread

Check the return value from the worker thread by saving the thread
handle and waiting for it to return.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-02-06 17:10:29 +00:00
committed by Sebastien Boeuf
parent 97ab767a2f
commit 613f254908
3 changed files with 23 additions and 4 deletions

1
Cargo.lock generated
View File

@@ -1072,6 +1072,7 @@ version = "0.1.0"
dependencies = [
"epoll 4.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
"vhost_rs 0.1.0",
"vm-memory 0.1.0 (git+https://github.com/rust-vmm/vm-memory)",
"vm-virtio 0.1.0",