Fix Bug in Process.c to print the exit statement in process_exit instead of exit syscall to handle unexpected/bad exits
This commit is contained in:
@@ -217,6 +217,8 @@ process_exit (void)
|
||||
struct thread *cur = thread_current ();
|
||||
uint32_t *pd;
|
||||
|
||||
printf ("%s: exit(%d)\n", cur->name, cur->exit_status);
|
||||
|
||||
/* Destroy the current process's page directory and switch back
|
||||
to the kernel-only page directory. */
|
||||
pd = cur->pagedir;
|
||||
|
||||
Reference in New Issue
Block a user