From 0c9d712a77bbede4808142944776d35f502bffa7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 6 Dec 2010 19:55:19 +0100 Subject: IPC implementiert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hat noch einen Bug, sollte aber als Beispiel für die anderen Aufgaben gut genug sein. --- aufgabe4/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'aufgabe4/main.c') diff --git a/aufgabe4/main.c b/aufgabe4/main.c index f876f54..c990f3d 100644 --- a/aufgabe4/main.c +++ b/aufgabe4/main.c @@ -1,5 +1,7 @@ /* * vim:ts=4:sw=4:expandtab + * + * © 2010 Michael Stapelberg * */ #include @@ -13,6 +15,7 @@ #include "log.h" #include "monitor.h" #include "statistic.h" +#include "queue.h" typedef void (*funcptr)(); @@ -69,6 +72,10 @@ pid_t fork_child(funcptr work, funcptr cleanup) { * */ int main() { + + /* Shared Memory-Bereich initialisieren */ + queue_init(); + pconv = fork_child(conv, conv_cleanup); plog = fork_child(log, log_cleanup); pstatistic = fork_child(statistic, statistic_cleanup); -- cgit v1.2.3-70-g09d2