aboutsummaryrefslogtreecommitdiff
path: root/aufgabe3
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2011-01-03 01:27:10 +0100
committerThorsten Töpper <atsutane@freethoughts.de>2011-01-03 01:27:10 +0100
commit89f32cb9767074cd9ab01d8bcc4b164a4f3ac83d (patch)
tree73436f38783a577e6724cd62115959e46ae850c0 /aufgabe3
parent429b38beed0cbdda3bb84aa8322908fff9b4b8c6 (diff)
downloadprozesskommunikation-89f32cb9767074cd9ab01d8bcc4b164a4f3ac83d.tar.gz
prozesskommunikation-89f32cb9767074cd9ab01d8bcc4b164a4f3ac83d.tar.bz2
Aufgabe 3: Attribute an globale Definition angepasst.
Diffstat (limited to 'aufgabe3')
-rw-r--r--aufgabe3/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aufgabe3/main.c b/aufgabe3/main.c
index 098ad59..12b61fa 100644
--- a/aufgabe3/main.c
+++ b/aufgabe3/main.c
@@ -81,12 +81,12 @@ mqd_t mqueue_init(const char *queue_name) {
if (attributes != NULL) { /* NULL als Attribut nimmt die Standard Werte */
attributes->mq_flags = 0; /* Queue blockiert bei mq_send()/mq_receive() */
attributes->mq_maxmsg = 4; /* maximal 4 Messages in der Queue */
- attributes->mq_msgsize = 9; /* Maximale Länge einer Nachricht */
+ attributes->mq_msgsize = MQ_MSG_SIZE_SEND; /* Maximale Länge einer Nachricht */
attributes->mq_curmsgs = 0; /* Anzahl der Messages momentan in der Queue */
}
/*
- * Erstellung der Message Queue.
+ * Erstellung der Message Queue mit den zuvor definierten Attributen.
*/
msgqueue_id = mq_open(queue_name, O_RDWR | O_CREAT, S_IRWXU | S_IRWXG, attributes);
if (msgqueue_id == -1) {