Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. extern crate procinfo;
  2. extern crate nix;
  3. use std::env::args;
  4. mod zombie;
  5. mod child;
  6. fn main() {
  7. let arguments:Vec<String> = args().collect();
  8. if arguments.len() == 2 {
  9. match procinfo::pid::stat_self(){
  10. Ok(stat) => {
  11. child::run_childs(stat.pid, &arguments[2]);
  12. },
  13. Err(_) => {},
  14. }
  15. } else {
  16. zombie::run_zombie();
  17. }
  18. }