diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2011-01-10 21:00:24 +0100 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2011-01-10 21:00:24 +0100 |
| commit | af86619723127c8404d3986551b3fd72934d58be (patch) | |
| tree | 06024e8a4c8e86ed14a23878a57e40b69ce6b85b /aufgabe2/log.c | |
| parent | 8f1c2cb3997af5632bf447ebc3c7c85b8b4deca6 (diff) | |
| download | prozesskommunikation-af86619723127c8404d3986551b3fd72934d58be.tar.gz prozesskommunikation-af86619723127c8404d3986551b3fd72934d58be.tar.bz2 | |
Aufgabe 2: ungenutzte Pipe-Enden schließen.
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 */ |
