1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Use new ProcessExit enum

This commit is contained in:
Jordi Boggiano 2013-11-12 10:57:48 +01:00
parent 56d6bb906c
commit 074b375034

7
env/env.rs vendored
View file

@ -190,8 +190,11 @@ fn main() {
match opts.program {
[ref prog, ..args] => {
let status = std::run::process_status(prog.as_slice(), args.as_slice());
std::os::set_exit_status(status)
let exit = std::run::process_status(prog.as_slice(), args.as_slice());
match exit {
std::rt::io::process::ExitStatus(status) => std::os::set_exit_status(status),
_ => std::os::set_exit_status(1)
}
}
[] => {