diff options
author | Matt Strapp <strap012@umn.edu> | 2020-11-03 18:46:56 -0600 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-11-03 18:46:56 -0600 |
commit | fbec0d7943fe536b0a051de6b5fcee8ee20d7d14 (patch) | |
tree | 8bd15061fa049d39385fb71057ac4e994c2f4302 /P2/lib | |
parent | get rid of bins (diff) | |
download | csci4061-fbec0d7943fe536b0a051de6b5fcee8ee20d7d14.tar csci4061-fbec0d7943fe536b0a051de6b5fcee8ee20d7d14.tar.gz csci4061-fbec0d7943fe536b0a051de6b5fcee8ee20d7d14.tar.bz2 csci4061-fbec0d7943fe536b0a051de6b5fcee8ee20d7d14.tar.lz csci4061-fbec0d7943fe536b0a051de6b5fcee8ee20d7d14.tar.xz csci4061-fbec0d7943fe536b0a051de6b5fcee8ee20d7d14.tar.zst csci4061-fbec0d7943fe536b0a051de6b5fcee8ee20d7d14.zip |
I'm a dumbass
Diffstat (limited to '')
-rw-r--r-- | P2/lib/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c index eda26e9..85bcc37 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -119,12 +119,12 @@ void shuffle(int nMappers, int nReducers) { printf("%ld\n", message.msgType); msgsnd(id, &message, MSGSIZE, 0); } - for (int i = 1; i <= nReducers; i++) { - struct msgBuffer END = {i, "END"}; - msgsnd(id, &END, MSGSIZE, 0); - } closedir(dir); } + for (int i = 1; i <= nReducers; i++) { + struct msgBuffer END = {i, "END"}; + msgsnd(id, &END, MSGSIZE, 0); + } } // check if the character is valid for a word |