aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src/mapreduce.c
diff options
context:
space:
mode:
Diffstat (limited to 'P1/src/mapreduce.c')
-rw-r--r--P1/src/mapreduce.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}