aboutsummaryrefslogtreecommitdiffstats
path: root/P2
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-27 13:28:30 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-27 13:28:30 -0500
commit1c06c703cd2004e6332a0b2b19d74ec721dd38e0 (patch)
tree654ef7c20b164f9d936a83f1a980804cdbc8fa56 /P2
parentChange something (diff)
downloadcsci4061-1c06c703cd2004e6332a0b2b19d74ec721dd38e0.tar
csci4061-1c06c703cd2004e6332a0b2b19d74ec721dd38e0.tar.gz
csci4061-1c06c703cd2004e6332a0b2b19d74ec721dd38e0.tar.bz2
csci4061-1c06c703cd2004e6332a0b2b19d74ec721dd38e0.tar.lz
csci4061-1c06c703cd2004e6332a0b2b19d74ec721dd38e0.tar.xz
csci4061-1c06c703cd2004e6332a0b2b19d74ec721dd38e0.tar.zst
csci4061-1c06c703cd2004e6332a0b2b19d74ec721dd38e0.zip
Don't close queue too soon
Diffstat (limited to 'P2')
-rw-r--r--P2/lib/utils.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 1a33cd2..1a291bd 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -17,7 +17,6 @@ char *getChunkData(int mapperID) {
// struct msgBuffer ACK = {mapperID, "ACK"};
// msgsnd(mid, &ACK, MSGSIZE, 0);
// }
- // msgctl(mid, IPC_RMID, 0);
return message.msgText;
}
@@ -55,7 +54,6 @@ void sendChunkData(char *inputFile, int nMappers) {
msgrcv(msgid, &message, MSGSIZE, i, 0);
}
- // msgctl(msgid, IPC_RMID, 0); // close that bih
}
// hash function to divide the list of word.txt files across reducers