Move problem 1-2 (join) into project 2 as the "wait" system call.
[pintos-anon] / grading / userprog / multi-parent-fd.c
index 4a8c89fae509f67ab2b4693c6e9ffa951375299c..56e10b13bd6c7bf941b1897fff915c968cbf29f2 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)