aboutsummaryrefslogtreecommitdiffstats
path: root/csci4061
diff options
context:
space:
mode:
Diffstat (limited to 'csci4061')
-rw-r--r--csci4061/102620_breakout/msg_queue_template.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/csci4061/102620_breakout/msg_queue_template.c b/csci4061/102620_breakout/msg_queue_template.c
index 676291e..af026f3 100644
--- a/csci4061/102620_breakout/msg_queue_template.c
+++ b/csci4061/102620_breakout/msg_queue_template.c
@@ -1,15 +1,16 @@
/*
-* Recitation Section Number:
-* Breakout Number:
-* Member Name (X500)
-* Member Name (X500)
-* Member Name (X500)
-* Member Name (X500)
+* Recitation Section Number: 02
+* Breakout Number: 05
+* Graden Hill (hill1582)
+* Gustav Baumgart (baumg260)
+* Matt Strapp (strap012)
+* Skylan Recnana (recan001)
*/
#include <stdio.h>
#include <sys/ipc.h>
#include <sys/msg.h>
+#include <sys/wait.h>
#include <zconf.h>
#include <string.h>
#include <stdlib.h>
@@ -84,7 +85,7 @@ int main(void) {
for (int j = 0; j < NCHILD; j++) {
if ((pid2 = fork()) == 0) {
// receive message
- msgrcv(msgid, &msg, MSGSIZE, +222, 0);
+ msgrcv(msgid, &msg, MSGSIZE, 222, 0);
// display the message