aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-06 08:19:19 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-06 08:19:19 -0500
commit0cf11bce7acac9640a143e6ff0db4b4419d669de (patch)
tree2a624e669d0b80655c0306df7706a19d66bf1a75
parentAdd comment (diff)
downloadcsci4061-0cf11bce7acac9640a143e6ff0db4b4419d669de.tar
csci4061-0cf11bce7acac9640a143e6ff0db4b4419d669de.tar.gz
csci4061-0cf11bce7acac9640a143e6ff0db4b4419d669de.tar.bz2
csci4061-0cf11bce7acac9640a143e6ff0db4b4419d669de.tar.lz
csci4061-0cf11bce7acac9640a143e6ff0db4b4419d669de.tar.xz
csci4061-0cf11bce7acac9640a143e6ff0db4b4419d669de.tar.zst
csci4061-0cf11bce7acac9640a143e6ff0db4b4419d669de.zip
Get rid of ancient comments
Diffstat (limited to '')
-rw-r--r--P1/src/mapreduce.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/P1/src/mapreduce.c b/P1/src/mapreduce.c
index 4da8c65..36e9045 100644
--- a/P1/src/mapreduce.c
+++ b/P1/src/mapreduce.c
@@ -34,7 +34,6 @@ int main(int argc, char *argv[]) {
for (int i = 1; i <= nMappers; i++) {
mapperPid = fork();
if (mapperPid == 0) {
- //TODO: exec here
char numMap[10];
sprintf(numMap, "%d", i);
execl("./mapper", "./mapper", &numMap, NULL);
@@ -47,7 +46,6 @@ int main(int argc, char *argv[]) {
}
for (int i = 0; i <= nMappers; i++) {
- //Hopefully this works
int waitError = wait(NULL);
if (waitError == -1)
{
@@ -83,7 +81,6 @@ int main(int argc, char *argv[]) {
}
for (int i = 0; i <= nReducers; i++) {
- //Maybe this works too?
int waitError = wait(NULL);
if (waitError == -1) {
printf("Wait failed!\n");