Skip to content

Commit

Permalink
Resolved Issue smuos#7 - The parent waits for child to finish.
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkustrife committed Sep 29, 2014
1 parent ae40aec commit b7dde7d
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 @@ -94,6 +94,7 @@ int main(int argc, char *argv[]) {

if (rc > 0) //if parent
{
int wc = wait(NULL);
meanValue = mean(pt, length);
fprintf(stdout, "The mean is: %.2f\n", meanValue);
}
Expand Down

0 comments on commit b7dde7d

Please sign in to comment.