Change shell binary to /bin/psh
This commit is contained in:
parent
021c63b0a5
commit
964ca333b6
@ -63,12 +63,14 @@ fn main() {
|
|||||||
|
|
||||||
let pts = File::open("/dev/pts0").unwrap();
|
let pts = File::open("/dev/pts0").unwrap();
|
||||||
|
|
||||||
Command::new("/bin/pts_tester")
|
match Command::new("/bin/psh")
|
||||||
.stdin(pts.try_clone().unwrap())
|
.stdin(pts.try_clone().unwrap())
|
||||||
.stdout(pts.try_clone().unwrap())
|
.stdout(pts.try_clone().unwrap())
|
||||||
.stderr(pts)
|
.stderr(pts)
|
||||||
.spawn()
|
.spawn() {
|
||||||
.unwrap();
|
Ok(_) => (),
|
||||||
|
Err(e) => writeln!(display, "Unable to start shell (/bin/psh): {}", e).unwrap(),
|
||||||
|
};
|
||||||
|
|
||||||
let mut kbd_buf = [0u8; 512];
|
let mut kbd_buf = [0u8; 512];
|
||||||
let mut pty_buf = [0u8; 512];
|
let mut pty_buf = [0u8; 512];
|
||||||
|
Loading…
Reference in New Issue
Block a user