Skip to content

Commit

Permalink
Child will prints median and Fixes smuos#5
Browse files Browse the repository at this point in the history
  • Loading branch information
yy90axf2010 committed Sep 27, 2014
1 parent 62d8fe5 commit 7c583ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ int main(int argc, char *argv[]) {

printf("Hello, I am child (pid:%d)\n", (int) rc);
//find the middle value
//int medianvalue;
//medianvalue = median(length, pt);
//fprintf(stdout, "I'm child and the median value is: %d\n", medianvalue);
int medianvalue;
medianvalue = median(length, pt);
fprintf(stdout, "I'm child and the median value is: %d\n", medianvalue);

} else{
int wc = wait(NULL);
Expand Down

0 comments on commit 7c583ba

Please sign in to comment.