Skip to content

Commit

Permalink
Let the parents wait for the child and Fixes smuos#7
Browse files Browse the repository at this point in the history
  • Loading branch information
yy90axf2010 committed Sep 27, 2014
1 parent 31dfc50 commit ded4122
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ int main(int argc, char *argv[]) {

} else{
int wc = wait(NULL);
//wait for child
printf("Waiting the child, I am %d (wc:%d) (pid:%d)\n",
getpid(), wc, (int) rc);
// find the mean value.
Expand Down

0 comments on commit ded4122

Please sign in to comment.