mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Remove panic when duplicating activate EventFds
Replace the (unlikely) panic when duplicating the EventFds with a propagated error. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -34,9 +34,7 @@ where
|
||||
let seccomp_filter = get_seccomp_filter(seccomp_action, thread_type)
|
||||
.map_err(ActivateError::CreateSeccompFilter)?;
|
||||
|
||||
let thread_exit_evt = exit_evt
|
||||
.try_clone()
|
||||
.map_err(ActivateError::CloneExitEventFd)?;
|
||||
let thread_exit_evt = exit_evt.try_clone().map_err(ActivateError::CloneEventFd)?;
|
||||
let thread_name = name.to_string();
|
||||
|
||||
thread::Builder::new()
|
||||
|
||||
Reference in New Issue
Block a user