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:
Barret Rhoden
2021-12-03 16:24:27 -05:00
committed by Sebastien Boeuf
parent b519975fc8
commit e08c747638
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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() {