aboutsummaryrefslogtreecommitdiff
path: root/aufgabe2/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'aufgabe2/monitor.c')
-rw-r--r--aufgabe2/monitor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/aufgabe2/monitor.c b/aufgabe2/monitor.c
index cb7ed29..b07cec6 100644
--- a/aufgabe2/monitor.c
+++ b/aufgabe2/monitor.c
@@ -14,6 +14,13 @@ char *message;
void monitor() {
int buffer;
+ /* ungenutzte Pipeköpfe schließen */
+ close(queue[D_CONV_TO_LOG][READ]);
+ close(queue[D_CONV_TO_LOG][WRITE]);
+ close(queue[D_CONV_TO_STAT][READ]);
+ close(queue[D_CONV_TO_STAT][WRITE]);
+ close(queue[D_STAT_TO_MON][WRITE]);
+
printf("monitor started\n");
/* Die Pipe zum lesen öffnen */