getty: temporary diag — log input forwarded from tty to pty
This commit is contained in:
@@ -67,6 +67,7 @@ pub fn handle(
|
||||
Err(ref err) if err.errno() == EAGAIN => break,
|
||||
Err(_) => panic!("getty: failed to read from TTY"),
|
||||
};
|
||||
eprintln!("getty-diag: fwd {count} bytes tty->pty {:?}", &packet[..count.min(24)]);
|
||||
redox::write(master_fd as usize, &packet[..count])
|
||||
.expect("getty: failed to write master PTY");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user