diff --git a/src/main.rs b/src/main.rs index 850ad4b..4c57589 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,12 +63,14 @@ fn main() { let pts = File::open("/dev/pts0").unwrap(); - Command::new("/bin/pts_tester") + match Command::new("/bin/psh") .stdin(pts.try_clone().unwrap()) .stdout(pts.try_clone().unwrap()) .stderr(pts) - .spawn() - .unwrap(); + .spawn() { + Ok(_) => (), + Err(e) => writeln!(display, "Unable to start shell (/bin/psh): {}", e).unwrap(), + }; let mut kbd_buf = [0u8; 512]; let mut pty_buf = [0u8; 512];