From 1c06c703cd2004e6332a0b2b19d74ec721dd38e0 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 27 Oct 2020 13:28:30 -0500 Subject: Don't close queue too soon --- P2/lib/utils.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'P2') 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 -- cgit v1.2.3