Complete execve - add argument support using safe ABI
This commit is contained in:
parent
57f5699664
commit
cfbaccf4d2
7 changed files with 167 additions and 122 deletions
|
@ -38,10 +38,9 @@ pub fn main() {
|
|||
|
||||
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);
|
||||
Ok(mut child) => match child.wait() {
|
||||
Ok(status) => println!("init: waited for {}: {:?}", line, status.code()),
|
||||
Err(err) => println!("init: failed to wait for '{}': {}", line, err)
|
||||
},
|
||||
Err(err) => println!("init: failed to execute '{}': {}", line, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue