mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user