Move problem 1-2 (join) into project 2 as the "wait" system call.
[pintos-anon] / src / tests / userprog / shell.c
index 7b9570ac9d564df88b3aef8c71d14600b1a481e6..7cf5c607d7d431df8d6ad7cc517a27be910c3fcc 100644 (file)
@@ -26,7 +26,7 @@ main (void)
         {
           pid_t pid = exec (command);
           if (pid != PID_ERROR)
-            join (pid);
+            wait (pid);
           else
             printf ("exec failed\n");
         }