Browse Source

Fixed bugs

themultiplexer 8 years ago
parent
commit
c10b801de3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      hw5/task1/src/main.rs

+ 2
- 2
hw5/task1/src/main.rs View File

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
 }

Loading…
Cancel
Save