diff options
author | Matt Strapp <strap012@umn.edu> | 2020-11-03 12:40:16 -0600 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-11-03 12:40:16 -0600 |
commit | ec3706f8cf716dcbd193ed01f571ee42cf278953 (patch) | |
tree | 1830bd3eeec6f557bba9fcf8c438bf06557caec3 | |
parent | AAAAA (diff) | |
download | csci4061-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
-rw-r--r-- | P2/lib/utils.c | 2 |
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"); |