Skip to content

Commit

Permalink
Resolved smuos#7: make parent wait for child
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsmith414 committed Sep 25, 2014
1 parent 821c11b commit 22e01ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ int main(int argc, char *argv[]) {
}
else //Parent calls and prints mean
{
// make parent wait until child is finished
wait(NULL);
fprintf(stdout, "The mean is: %f \n", mean(pt,length));
}

Expand Down

0 comments on commit 22e01ca

Please sign in to comment.