mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-29 08:08:41 +08:00
Debug init exec and wait
This commit is contained in:
parent
9ad8ea7dd2
commit
0cb5a1045a
@ -36,9 +36,12 @@ pub fn main() {
|
||||
command.arg(arg);
|
||||
}
|
||||
|
||||
println!("init: spawning {}", line);
|
||||
match command.spawn() {
|
||||
Ok(mut child) => if let Err(err) = child.wait() {
|
||||
println!("init: failed to wait for '{}': {}", line, err);
|
||||
} else {
|
||||
println!("init: waited for {}", line);
|
||||
},
|
||||
Err(err) => println!("init: failed to execute '{}': {}", line, err)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user