mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: fix HANDLED_SIGNALS build error
The error was: borrow the array with `&` or call `.iter()` on it to iterate over it Fixes #3348 Signed-off-by: Barret Rhoden <brho@google.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
b519975fc8
commit
e08c747638
+2
-2
@@ -1654,8 +1654,8 @@ impl Vm {
|
||||
on_tty: bool,
|
||||
exit_evt: &EventFd,
|
||||
) {
|
||||
for sig in HANDLED_SIGNALS {
|
||||
unblock_signal(sig).unwrap();
|
||||
for sig in &HANDLED_SIGNALS {
|
||||
unblock_signal(*sig).unwrap();
|
||||
}
|
||||
|
||||
for signal in signals.forever() {
|
||||
|
||||
Reference in New Issue
Block a user