From e9841db486bb9dae8455d96160d634b1364d2b5b Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 23 Mar 2023 17:14:35 +0000 Subject: [PATCH] vmm: don't ignore errors from SIGWINCH listener Now that the SIGWINCH listener has fallbacks for older kernels, we don't expect it to routinely fail, so if there's an error setting it up, we want to know about it. Signed-off-by: Alyssa Ross --- vmm/src/device_manager.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index fb9fcaa8b..d79d3f7b7 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -1877,14 +1877,8 @@ impl DeviceManager { ) .unwrap(); - match start_sigwinch_listener(seccomp_filter, pty_sub) { - Ok(pipe) => { - self.console_resize_pipe = Some(Arc::new(pipe)); - } - Err(e) => { - warn!("Ignoring error from setting up SIGWINCH listener: {}", e) - } - } + self.console_resize_pipe = + Some(Arc::new(start_sigwinch_listener(seccomp_filter, pty_sub)?)); Ok(()) }