From af86619723127c8404d3986551b3fd72934d58be Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Mon, 10 Jan 2011 21:00:24 +0100 Subject: Aufgabe 2: ungenutzte Pipe-Enden schließen. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aufgabe2/statistic.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'aufgabe2/statistic.c') 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 */ -- cgit v1.2.3-70-g09d2