Closing the log port if possible.

svn: r94
This commit is contained in:
Jay McCarthy 2005-06-13 17:45:14 +00:00
parent 6e80e7f6b4
commit 299266d30a

View File

@ -249,6 +249,8 @@
(lambda (host-ip client-ip method uri host)
(semaphore-wait outsem)
(unless (and log-p (file-exists? log-path))
(when log-p
(close-output-port log-p))
(set! log-p (open-output-file log-path 'append))
(file-stream-buffer-mode log-p 'line))
; do the display all at once by formating first