diff options
author | Matt Strapp <strap012@umn.edu> | 2020-10-03 16:17:06 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-10-03 16:17:06 -0500 |
commit | f4c4da9c723febab79540a43ec2d0fb6b7b8b97c (patch) | |
tree | 579644a0e4ee2678e0e5b6edf71d79205c85e40b | |
parent | Update README (diff) | |
download | csci4061-f4c4da9c723febab79540a43ec2d0fb6b7b8b97c.tar csci4061-f4c4da9c723febab79540a43ec2d0fb6b7b8b97c.tar.gz csci4061-f4c4da9c723febab79540a43ec2d0fb6b7b8b97c.tar.bz2 csci4061-f4c4da9c723febab79540a43ec2d0fb6b7b8b97c.tar.lz csci4061-f4c4da9c723febab79540a43ec2d0fb6b7b8b97c.tar.xz csci4061-f4c4da9c723febab79540a43ec2d0fb6b7b8b97c.tar.zst csci4061-f4c4da9c723febab79540a43ec2d0fb6b7b8b97c.zip |
Fix dumb mistake
Diffstat (limited to '')
-rw-r--r-- | P1/src/mapreduce.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/P1/src/mapreduce.c b/P1/src/mapreduce.c index ed1f9e5..2f6a0fb 100644 --- a/P1/src/mapreduce.c +++ b/P1/src/mapreduce.c @@ -29,8 +29,9 @@ int main(int argc, char *argv[]) { pid_t mapperPid; for (int i = 0; i < nMappers; i++) { mapperPid = fork(); - if (mapperPid != 0) { - //TODO: exec here + if (mapperPid > 0) { + //TODO: exec here + } } @@ -55,7 +56,7 @@ int main(int argc, char *argv[]) { pid_t reducerPid; for (int i = 0; i < nReducers; i++) { reducerPid = fork(); - if (reducerPid != 0) { + if (reducerPid > 0) { //TODO: exec here } } |