From 02255b13c2211b7ef503ad149a48bd601b780312 Mon Sep 17 00:00:00 2001 From: Andrea Smith Date: Sat, 3 Oct 2020 16:32:39 -0500 Subject: Update --- P1/src/mapper.c | 1 + P1/src/mapreduce.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/P1/src/mapper.c b/P1/src/mapper.c index 1c4468b..f1299b7 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -100,6 +100,7 @@ int main(int argc, char *argv[]) { printf("./mapper mapperID\n"); exit(0); } + // ###### DO NOT REMOVE ###### mapperID = strtol(argv[1], NULL, 10); diff --git a/P1/src/mapreduce.c b/P1/src/mapreduce.c index 2f6a0fb..6a882bc 100644 --- a/P1/src/mapreduce.c +++ b/P1/src/mapreduce.c @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) { mapperPid = fork(); if (mapperPid > 0) { //TODO: exec here - + execl("./mapper", "./mapper", i, NULL); } } @@ -58,6 +58,7 @@ int main(int argc, char *argv[]) { reducerPid = fork(); if (reducerPid > 0) { //TODO: exec here + execl("./reducer", "./reducer", i, NULL); } } -- cgit v1.2.3