diff options
Diffstat (limited to 'src/userprog/process.c')
| -rw-r--r-- | src/userprog/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/userprog/process.c b/src/userprog/process.c index fbf2f50..6170b53 100644 --- a/src/userprog/process.c +++ b/src/userprog/process.c @@ -145,6 +145,8 @@ process_wait (tid_t child_tid) sema_down (&pc->exit_sema); int exit_status = pc->exit_status; pc->exit_status = -1; + sema_up (&pc->exit_sema); // a bit of a hack + // the child is killed so we can read again if we want to return exit_status; } } |
