aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-10-03 16:32:39 -0500
committerAndrea Smith <smit9523@umn.edu>2020-10-03 16:32:39 -0500
commit02255b13c2211b7ef503ad149a48bd601b780312 (patch)
tree0f9584271538d16e7f544f3e6397878d8ece250b /P1/src
parentI am a dumb (diff)
downloadcsci4061-02255b13c2211b7ef503ad149a48bd601b780312.tar
csci4061-02255b13c2211b7ef503ad149a48bd601b780312.tar.gz
csci4061-02255b13c2211b7ef503ad149a48bd601b780312.tar.bz2
csci4061-02255b13c2211b7ef503ad149a48bd601b780312.tar.lz
csci4061-02255b13c2211b7ef503ad149a48bd601b780312.tar.xz
csci4061-02255b13c2211b7ef503ad149a48bd601b780312.tar.zst
csci4061-02255b13c2211b7ef503ad149a48bd601b780312.zip
Update
Diffstat (limited to '')
-rw-r--r--P1/src/mapper.c1
-rw-r--r--P1/src/mapreduce.c3
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);
}
}