From bdf950a528d11e852f21529f44f849109d92f40a Mon Sep 17 00:00:00 2001
From: Joshua Saxby <joshua.a.saxby@gmail.com>
Date: Tue, 3 Dec 2019 08:50:42 +0000
Subject: [PATCH] Correct a copy-paste mistake in syscall.c

---
 userprog/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/userprog/syscall.c b/userprog/syscall.c
index 210d7a8..0c4d8cf 100644
--- a/userprog/syscall.c
+++ b/userprog/syscall.c
@@ -65,7 +65,7 @@ syscall_handler (struct intr_frame *f UNUSED)
     syscall_exec(f);
     break;
   case SYSCALL_WAIT:
-    syscall_exec(f);
+    syscall_wait(f);
     break;
   default:
     printf ("WARNING: Invalid Syscall (%d)\n", syscall_number);
-- 
GitLab