aboutsummaryrefslogtreecommitdiffstats
path: root/P2/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--P2/src/mapreduce.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/P2/src/mapreduce.c b/P2/src/mapreduce.c
index 290c1c5..7f5e8c4 100644
--- a/P2/src/mapreduce.c
+++ b/P2/src/mapreduce.c
@@ -77,6 +77,7 @@ int main(int argc, char *argv[]) {
// wait for all children to complete execution
while (wait(&status) > 0);
- closeQueue();
+ closeQueue(openQueue("map"));
+ closeQueue(openQueue("reduce"));
return 0;
} \ No newline at end of file