Permalink
Browse files

changes

  • Loading branch information...
1 parent af5607f commit 8a02d8392796aa4bae7b9e5f21034f6b66aaecca @grantborthwick committed Oct 28, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/userprog/process.c
View
@@ -147,8 +147,14 @@ process_wait (tid_t child_tid)
if (t2->tid == child_tid){t = t2; break;}
}
if (t == NULL){return -1;}
+
sema_down(&(t->dead));
- return 0;
+ list_remove(e);
+ //sema_up(&(t->dead));
+
+ //int temp = t->exit_code;
+ //t->exit_code = -1;
+ return t->exit_code;
}
/* Free the current process's resources. */

0 comments on commit 8a02d83

Please sign in to comment.