diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c index 3cb3d69..6eb1bce 100644 --- a/src/userprog/syscall.c +++ b/src/userprog/syscall.c @@ -3,6 +3,7 @@ #include "threads/vaddr.h" #include "threads/interrupt.h" #include "threads/thread.h" +#include "userprog/process.h" #include #include @@ -115,10 +116,9 @@ syscall_exec (const char *cmd_line UNUSED) } static int -syscall_wait (pid_t pid UNUSED) +syscall_wait (pid_t pid) { - //TODO - return 0; + return process_wait (pid); } static bool