Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
CCXXXI committed Jan 10, 2021
1 parent 35868a5 commit 2e9beba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/userprog/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int process_wait(tid_t child_tid)
if (!cur_init)
list_remove(&child->elem);
list_remove(&child->allelem);
int exit_code = child->status == PROCESS_EXITED ? child->exit_code : -1;
int exit_code = child->exit_code;
palloc_free_page(child);

return exit_code;
Expand Down

0 comments on commit 2e9beba

Please sign in to comment.