From ad85266da1274190857a5f1829c53f97cf4a089b Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Fri, 21 Jan 2022 13:56:45 -0800 Subject: [PATCH] Remove unmeaningful messages of initproc/user_shell --- user/src/bin/initproc.rs | 4 +++- user/src/bin/user_shell.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/user/src/bin/initproc.rs b/user/src/bin/initproc.rs index 99563f47..a9b8048a 100644 --- a/user/src/bin/initproc.rs +++ b/user/src/bin/initproc.rs @@ -23,12 +23,14 @@ fn main() -> i32 { yield_(); continue; } + /* println!( "[initproc] Released a zombie process, pid={}, exit_code={}", pid, exit_code, ); + */ } } 0 -} \ No newline at end of file +} diff --git a/user/src/bin/user_shell.rs b/user/src/bin/user_shell.rs index f7cefc12..09c6ea8b 100644 --- a/user/src/bin/user_shell.rs +++ b/user/src/bin/user_shell.rs @@ -196,7 +196,7 @@ pub fn main() -> i32 { for pid in children.into_iter() { let exit_pid = waitpid(pid as usize, &mut exit_code); assert_eq!(pid, exit_pid); - println!("Shell: Process {} exited with code {}", pid, exit_code); + //println!("Shell: Process {} exited with code {}", pid, exit_code); } } line.clear();