Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changes

  • Loading branch information...
commit 8a02d8392796aa4bae7b9e5f21034f6b66aaecca 1 parent af5607f
@grantborthwick authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/userprog/process.c
View
8 src/userprog/process.c
@@ -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. */
Please sign in to comment.
Something went wrong with that request. Please try again.