浏览代码

Fixed bugs

themultiplexer 8 年前
父节点
当前提交
c10b801de3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      hw5/task1/src/main.rs

+ 2
- 2
hw5/task1/src/main.rs 查看文件

15
 
15
 
16
         match procinfo::pid::stat_self(){
16
         match procinfo::pid::stat_self(){
17
             Ok(stat) => {
17
             Ok(stat) => {
18
-                let result = child::run_childs(stat.pid, &arguments[2]);
18
+                let result = child::run_childs(stat.pid, &arguments[1]);
19
                 match result {
19
                 match result {
20
                     Ok(_) => {},
20
                     Ok(_) => {},
21
                     Err(_) => {},
21
                     Err(_) => {},
26
 
26
 
27
 
27
 
28
     } else {
28
     } else {
29
-        zombie::run_zombie();
29
+        //zombie::run_zombie();
30
     }
30
     }
31
 
31
 
32
 }
32
 }

正在加载...
取消
保存