From e8ba6edc687cd4d198d93259f5889482723ac43b Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 28 Oct 2020 17:54:38 -0500 Subject: Add a close function --- P2/src/mapreduce.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'P2/src/mapreduce.c') diff --git a/P2/src/mapreduce.c b/P2/src/mapreduce.c index 962a9ca..7f87019 100644 --- a/P2/src/mapreduce.c +++ b/P2/src/mapreduce.c @@ -49,6 +49,7 @@ int main(int argc, char *argv[]) { pid_t pid = fork(); if(pid == 0){ //send chunks of data to the mappers in RR fashion + printf("TEST\n"); sendChunkData(inputFile, nMappers); exit(0); } @@ -77,5 +78,6 @@ int main(int argc, char *argv[]) { // wait for all children to complete execution while (wait(&status) > 0); + closeQueue(); return 0; } \ No newline at end of file -- cgit v1.2.3