aboutsummaryrefslogtreecommitdiffstats
path: root/P2
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-03 12:40:16 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-03 12:40:16 -0600
commitec3706f8cf716dcbd193ed01f571ee42cf278953 (patch)
tree1830bd3eeec6f557bba9fcf8c438bf06557caec3 /P2
parentAAAAA (diff)
downloadcsci4061-ec3706f8cf716dcbd193ed01f571ee42cf278953.tar
csci4061-ec3706f8cf716dcbd193ed01f571ee42cf278953.tar.gz
csci4061-ec3706f8cf716dcbd193ed01f571ee42cf278953.tar.bz2
csci4061-ec3706f8cf716dcbd193ed01f571ee42cf278953.tar.lz
csci4061-ec3706f8cf716dcbd193ed01f571ee42cf278953.tar.xz
csci4061-ec3706f8cf716dcbd193ed01f571ee42cf278953.tar.zst
csci4061-ec3706f8cf716dcbd193ed01f571ee42cf278953.zip
help
Diffstat (limited to 'P2')
-rw-r--r--P2/lib/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index da250dc..b9d4be6 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -46,6 +46,8 @@ void sendChunkData(char *inputFile, int nMappers) {
struct msgBuffer message = makeMessage();
// open message queue
int msgid = openQueue();
+ closeQueue(msgid);
+ msgid = openQueue();
// DEBUG! Remove if already exists when opening queue for the first time
int map = 0;
FILE* file = fopen(inputFile, "r");