aboutsummaryrefslogtreecommitdiff
path: root/aufgabe2/statistic.c
diff options
context:
space:
mode:
Diffstat (limited to 'aufgabe2/statistic.c')
-rw-r--r--aufgabe2/statistic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/aufgabe2/statistic.c b/aufgabe2/statistic.c
index 31230cf..1b6c234 100644
--- a/aufgabe2/statistic.c
+++ b/aufgabe2/statistic.c
@@ -15,6 +15,13 @@ char *message;
void statistic() {
int current_value = 0, last_value = 0, result;
+ /* 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][WRITE]);
+ close(queue[D_STAT_TO_MON][READ]);
+
+
printf("statistic started\n");
/* Die Pipe zum conv Prozess lesend öffnen, die zum monitor schreibend */