vmm: serial_manager: Use more appropriately named variable

This isn't an fd - rather it's the UnixListener struct.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-03-06 08:22:05 -08:00
parent 4ebbbe2294
commit 5e2539ae16

View File

@@ -161,11 +161,11 @@ impl SerialManager {
ConsoleOutput::Tty(_) => {
return Ok(None);
}
ConsoleOutput::Socket(ref fd) => {
ConsoleOutput::Socket(ref listener) => {
if let Some(path_in_socket) = socket {
socket_path = Some(path_in_socket.clone());
}
fd.as_raw_fd()
listener.as_raw_fd()
}
_ => return Ok(None),
};