From ec3706f8cf716dcbd193ed01f571ee42cf278953 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 3 Nov 2020 12:40:16 -0600 Subject: help --- P2/lib/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'P2/lib') 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"); -- cgit v1.2.3