aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2020-11-03 08:13:13 -0600
committerMatthew Strapp <msattr@gmail.com>2020-11-03 08:13:13 -0600
commitd5af9583b6ee71955a253db7cc5dd366392fa94a (patch)
tree7f4d02b57b14e7918922f63672d6891d511356e3
parentDo breakouts (diff)
downloadhomework-d5af9583b6ee71955a253db7cc5dd366392fa94a.tar
homework-d5af9583b6ee71955a253db7cc5dd366392fa94a.tar.gz
homework-d5af9583b6ee71955a253db7cc5dd366392fa94a.tar.bz2
homework-d5af9583b6ee71955a253db7cc5dd366392fa94a.tar.lz
homework-d5af9583b6ee71955a253db7cc5dd366392fa94a.tar.xz
homework-d5af9583b6ee71955a253db7cc5dd366392fa94a.tar.zst
homework-d5af9583b6ee71955a253db7cc5dd366392fa94a.zip
queue
Diffstat (limited to '')
-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