MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / fork_tree

Function fork_tree

user/src/bin/forktree.rs:26–34  ·  view source on GitHub ↗
(cur: &str)

Source from the content-addressed store, hash-verified

24}
25
26fn fork_tree(cur: &str) {
27 println!("pid{}: {}", getpid(), cur);
28 fork_child(cur, '0');
29 fork_child(cur, '1');
30 let mut exit_code: i32 = 0;
31 for _ in 0..2 {
32 wait(&mut exit_code);
33 }
34}
35
36#[no_mangle]
37pub fn main() -> i32 {

Callers 2

fork_childFunction · 0.85
mainFunction · 0.85

Calls 2

fork_childFunction · 0.85
waitFunction · 0.85

Tested by

no test coverage detected