diff options
author | --global <strap012@umn.edu> | 2020-10-24 15:04:56 -0500 |
---|---|---|
committer | --global <strap012@umn.edu> | 2020-10-24 15:04:56 -0500 |
commit | e6d0a88d284bcc89709bd9fea9469e11067b26fa (patch) | |
tree | e53dc814a0ac4f3419155b50d90bf98d1e8ff981 /P2 | |
parent | Add C O M M E N T A R Y (diff) | |
download | csci4061-e6d0a88d284bcc89709bd9fea9469e11067b26fa.tar csci4061-e6d0a88d284bcc89709bd9fea9469e11067b26fa.tar.gz csci4061-e6d0a88d284bcc89709bd9fea9469e11067b26fa.tar.bz2 csci4061-e6d0a88d284bcc89709bd9fea9469e11067b26fa.tar.lz csci4061-e6d0a88d284bcc89709bd9fea9469e11067b26fa.tar.xz csci4061-e6d0a88d284bcc89709bd9fea9469e11067b26fa.tar.zst csci4061-e6d0a88d284bcc89709bd9fea9469e11067b26fa.zip |
Lord please help
Diffstat (limited to 'P2')
-rw-r--r-- | P2/lib/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c index 98239d5..7d85c84 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -14,7 +14,8 @@ char *getChunkData(int mapperID) { } msgrcv(mid, (void *) &message, MSGSIZE, mapperID, 0); if (strcmp("END", message -> msgText)) { - msgsnd(mid, (void *) "ACK", 3, 0); + struct msgBuffer ACK = {mapperID, "ACK"}; + msgsnd(mid, (void *) &ACK, MSGSIZE, 0); } char* returnValue = message -> msgText; return returnValue; |