aboutsummaryrefslogtreecommitdiffstats
path: root/P2
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-03 09:58:32 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-03 09:58:32 -0600
commit93bd6b70fc76cafaec6280f8d45e470ef74d34d1 (patch)
tree70bd6bf6feff1967709fe8134739aa9243f45544 /P2
parentreadd debug printf from queue (diff)
downloadcsci4061-93bd6b70fc76cafaec6280f8d45e470ef74d34d1.tar
csci4061-93bd6b70fc76cafaec6280f8d45e470ef74d34d1.tar.gz
csci4061-93bd6b70fc76cafaec6280f8d45e470ef74d34d1.tar.bz2
csci4061-93bd6b70fc76cafaec6280f8d45e470ef74d34d1.tar.lz
csci4061-93bd6b70fc76cafaec6280f8d45e470ef74d34d1.tar.xz
csci4061-93bd6b70fc76cafaec6280f8d45e470ef74d34d1.tar.zst
csci4061-93bd6b70fc76cafaec6280f8d45e470ef74d34d1.zip
help
Diffstat (limited to '')
-rw-r--r--P2/lib/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 1fa9611..7cc4d7c 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -52,7 +52,7 @@ void sendChunkData(char *inputFile, int nMappers) {
fseek(file, (i - 1023), SEEK_CUR);
message.msgType = (map++ % nMappers) + 1;
// printf("%s\n\n",message.msgText);
- msgsnd(msgid, &message, map, 0);
+ msgsnd(msgid, &message, MSGSIZE, 0);
}
for (int i = 1; i <= nMappers; i++) {