diff options
| author | Matt Strapp <strap012@umn.edu> | 2020-11-03 08:13:31 -0600 | 
|---|---|---|
| committer | Matt Strapp <strap012@umn.edu> | 2020-11-03 08:13:31 -0600 | 
| commit | 4ebf12177ea635fd9c3eb15ec794db6eeda13e41 (patch) | |
| tree | e484cd9737738282b581aaacc64f9345a537e06e /P2/lib | |
| parent | get rid of debug comment (diff) | |
| download | csci4061-4ebf12177ea635fd9c3eb15ec794db6eeda13e41.tar csci4061-4ebf12177ea635fd9c3eb15ec794db6eeda13e41.tar.gz csci4061-4ebf12177ea635fd9c3eb15ec794db6eeda13e41.tar.bz2 csci4061-4ebf12177ea635fd9c3eb15ec794db6eeda13e41.tar.lz csci4061-4ebf12177ea635fd9c3eb15ec794db6eeda13e41.tar.xz csci4061-4ebf12177ea635fd9c3eb15ec794db6eeda13e41.tar.zst csci4061-4ebf12177ea635fd9c3eb15ec794db6eeda13e41.zip | |
help
Diffstat (limited to '')
| -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 797fe89..700aaa7 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -20,7 +20,7 @@ char *getChunkData(int mapperID) {  	//Queue ID  	int mid = openQueue("map");  	printf("%d\n", mapperID); -	msgrcv(mid, &message, sizeof(message.msgText), mapperID, 0); +	msgrcv(mid, &message, chunkSize, mapperID, 0);  	// printf("\n%s\n", message.msgText);  	// printf("%d\n", strncmp("END", message.msgText, 3));  	if (!strncmp("END", message.msgText, 3)) @@ -30,6 +30,7 @@ char *getChunkData(int mapperID) {  	}  	char* value = message.msgText;  	printf("%s\n", message.msgText); +	printf("%s\n", value);  	return value;  	//return &(message.msgText);  } | 
