Correct init process, allow waiting on any children, reap zombies in init

This commit is contained in:
Jeremy Soller 2016-11-01 11:04:53 -06:00
parent ff227737bf
commit 25743a89a2
4 changed files with 122 additions and 46 deletions

View file

@ -89,4 +89,9 @@ pub fn main() {
if let Err(err) = run("initfs:etc/init.rc") {
println!("init: failed to run initfs:etc/init.rc: {}", err);
}
loop {
let mut status = 0;
syscall::waitpid(0, &mut status, 0).unwrap();
}
}