aboutsummaryrefslogtreecommitdiff
path: root/aufgabe2/conv.c
diff options
context:
space:
mode:
Diffstat (limited to 'aufgabe2/conv.c')
-rw-r--r--aufgabe2/conv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/aufgabe2/conv.c b/aufgabe2/conv.c
index 1c2e1b5..6a433fb 100644
--- a/aufgabe2/conv.c
+++ b/aufgabe2/conv.c
@@ -14,6 +14,12 @@ FILE *pipe_stat;
void conv() {
int random_number = 0;
+ /* ungenutzte Pipeköpfe schließen */
+ close(queue[D_CONV_TO_LOG][READ]);
+ close(queue[D_CONV_TO_STAT][READ]);
+ close(queue[D_STAT_TO_MON][READ]);
+ close(queue[D_STAT_TO_MON][WRITE]);
+
printf("conv started\n");
/* Die beiden Pipes zum schreiben öffnen */