Correct init process, allow waiting on any children, reap zombies in init
This commit is contained in:
parent
ff227737bf
commit
25743a89a2
4 changed files with 122 additions and 46 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue