Add wnohang, make PS/2 driver write input to display scheme, which then passes it to the shell
This commit is contained in:
parent
046236c10f
commit
76b0c7eeea
9 changed files with 151 additions and 96 deletions
|
@ -11,13 +11,13 @@ pub fn main() {
|
|||
let sh = args.next().expect("login: no sh provided");
|
||||
let sh_args: Vec<String> = args.collect();
|
||||
|
||||
syscall::close(2);
|
||||
syscall::close(1);
|
||||
syscall::close(0);
|
||||
let _ = syscall::close(2);
|
||||
let _ = syscall::close(1);
|
||||
let _ = syscall::close(0);
|
||||
|
||||
syscall::open(&tty, syscall::flag::O_RDWR);
|
||||
syscall::open(&tty, syscall::flag::O_RDWR);
|
||||
syscall::open(&tty, syscall::flag::O_RDWR);
|
||||
let _ = syscall::open(&tty, syscall::flag::O_RDWR);
|
||||
let _ = syscall::open(&tty, syscall::flag::O_RDWR);
|
||||
let _ = syscall::open(&tty, syscall::flag::O_RDWR);
|
||||
|
||||
thread::spawn(move || {
|
||||
loop {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue