Implement the exit system call, w/ E

This commit is contained in:
sBubshait
2024-11-05 22:38:45 +00:00
parent 2dccd87a76
commit e9c4061531

View File

@@ -99,9 +99,12 @@ halt (void)
} }
static void static void
exit (int status UNUSED) exit (int status)
{ {
//TODO /* Sets exit_status of the thread to status. thread_exit () will call
process_exit () if user programs are allowed. */
thread_current ()->exit_status = status;
thread_exit ();
} }
static pid_t static pid_t