diff options
Diffstat (limited to 'aufgabe2/log.c')
| -rw-r--r-- | aufgabe2/log.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/aufgabe2/log.c b/aufgabe2/log.c index 14684ce..779b25b 100644 --- a/aufgabe2/log.c +++ b/aufgabe2/log.c @@ -13,6 +13,14 @@ FILE *logfile; char *message; void log() { + /* ungenutzte Pipeköpfe schließen */ + 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][READ]); + close(queue[D_STAT_TO_MON][WRITE]); + + printf("log started\n"); /* Die Pipe zum lesen öffnen */ |
