From ed4af3a005e31cd67e1ff45f8afacacc4dae0497 Mon Sep 17 00:00:00 2001 From: Praveen K Paladugu Date: Wed, 26 Nov 2025 11:45:45 -0600 Subject: [PATCH] vmm: fix the initial flush while using PTY Fix the condition to correctly identify a new PTY connection. Fixes: 287887c99 (vmm: fix console IO safety) Signed-off-by: Praveen K Paladugu --- vmm/src/serial_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/serial_manager.rs b/vmm/src/serial_manager.rs index 4c886c73e..5f8de1874 100644 --- a/vmm/src/serial_manager.rs +++ b/vmm/src/serial_manager.rs @@ -294,7 +294,7 @@ impl SerialManager { } }; - if matches!(in_file, ConsoleOutput::Socket(_)) && num_events == 0 { + if matches!(in_file, ConsoleOutput::Pty(_)) && num_events == 0 { // This very specific case happens when the serial is connected // to a PTY. We know EPOLLHUP is always present when there's nothing // connected at the other end of the PTY. That's why getting no event