diff options
Diffstat (limited to 'P1')
-rw-r--r-- | P1/src/mapper.c | 1 | ||||
-rw-r--r-- | P1/src/mapreduce.c | 3 |
2 files changed, 3 insertions, 1 deletions
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); } } |