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 a new issue