From a713ee3a59ed09801972918957dfd032a51456e6 Mon Sep 17 00:00:00 2001 From: Hang Park Date: Wed, 12 Apr 2017 16:53:15 +0900 Subject: [PATCH] [#10] Implement wait system call --- src/userprog/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c index 97088ff..4daf803 100644 --- a/src/userprog/syscall.c +++ b/src/userprog/syscall.c @@ -190,10 +190,11 @@ syscall_exec (const char *cmd_line) return p->pid; } +/* Waits for a child process pid and retrieves the child's exit status. */ static int syscall_wait (pid_t pid) { - return 0; + return process_wait (pid); } static bool