From ded4122b2e8f6bd4997ec1c92114a8ff603e6e19 Mon Sep 17 00:00:00 2001 From: yang Date: Sat, 27 Sep 2014 17:01:37 -0300 Subject: [PATCH] Let the parents wait for the child and Fixes #7 --- mm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm.c b/mm.c index 22d0a05..0db72c1 100644 --- a/mm.c +++ b/mm.c @@ -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.