From 2ab75f2342d4bdc0828aacb31679dc7810c69153 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sat, 24 Oct 2020 12:36:50 -0500 Subject: Change dev enivronment --- P2/lib/utils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'P2/lib') diff --git a/P2/lib/utils.c b/P2/lib/utils.c index f164ee4..2d15d0f 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -3,7 +3,11 @@ char *getChunkData(int mapperID) { int mid; key_t key = 10; - mid = msgget(); + mid = msgget(key, 0666); + if (mid < 0) { + perror("Cannot open queue.\n"); + exit(0); + } } -- cgit v1.2.3