Update exit () syscall to print correct termination message

This commit is contained in:
Themis Demetriades
2024-11-06 23:01:10 +00:00
parent b2764cfa0c
commit 1ca9d09512

View File

@@ -105,6 +105,7 @@ syscall_exit (int status)
{
/* Sets exit_status of the thread to status. thread_exit () will call
process_exit () if user programs are allowed. */
printf ("%s: exit(%d)\n", thread_current()->name, status);
thread_current ()->exit_status = status;
thread_exit ();
}