diff --git a/vmm/src/console_devices.rs b/vmm/src/console_devices.rs index 0a0967ec1..5462d1fb5 100644 --- a/vmm/src/console_devices.rs +++ b/vmm/src/console_devices.rs @@ -10,6 +10,7 @@ // SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause // +use crate::sigwinch_listener::listen_for_sigwinch_on_tty; use crate::vm_config::ConsoleOutputMode; use crate::Vmm; use libc::cfmakeraw; @@ -54,6 +55,10 @@ pub enum ConsoleDeviceError { /// Cannot duplicate file descriptor #[error("Cannot duplicate file descriptor: {0}")] DupFd(#[source] vmm_sys_util::errno::Error), + + /// Error starting sigwinch listener + #[error("Error starting sigwinch listener: {0}")] + StartSigwinchListener(#[source] std::io::Error), } type ConsoleDeviceResult = result::Result; @@ -179,6 +184,14 @@ pub(crate) fn pre_create_console_devices(vmm: &mut Vmm) -> ConsoleDeviceResult { // Duplicating the file descriptors like this is needed as otherwise @@ -192,6 +205,18 @@ pub(crate) fn pre_create_console_devices(vmm: &mut Vmm) -> ConsoleDeviceResult, threads: Vec>, original_termios_opt: Arc>>, + console_resize_pipe: Option, } impl Vmm { @@ -683,6 +684,7 @@ impl Vmm { signals: None, threads: vec![], original_termios_opt: Arc::new(Mutex::new(None)), + console_resize_pipe: None, }) }