Move problem 1-2 (join) into project 2 as the "wait" system call.
[pintos-anon] / grading / userprog / multi-child-fd.c
index 50b5a50d045359af6ff79049e29b524ceee755d5..7b1bc9a912fc9e5efa15ce318a49106ae7803ac1 100644 (file)
@@ -20,7 +20,7 @@ main (void)
 
   snprintf (child_cmd, sizeof child_cmd, "child-close %d", handle);
   
-  printf ("(multi-child-fd) join(exec()) = %d\n", join (exec (child_cmd)));
+  printf ("(multi-child-fd) wait(exec()) = %d\n", wait (exec (child_cmd)));
 
   byte_cnt = read (handle, actual, sizeof actual - 1);
   if (byte_cnt != sizeof actual - 1)