Closing the log port if possible.
svn: r94
This commit is contained in:
parent
6e80e7f6b4
commit
299266d30a
|
@ -249,6 +249,8 @@
|
||||||
(lambda (host-ip client-ip method uri host)
|
(lambda (host-ip client-ip method uri host)
|
||||||
(semaphore-wait outsem)
|
(semaphore-wait outsem)
|
||||||
(unless (and log-p (file-exists? log-path))
|
(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))
|
(set! log-p (open-output-file log-path 'append))
|
||||||
(file-stream-buffer-mode log-p 'line))
|
(file-stream-buffer-mode log-p 'line))
|
||||||
; do the display all at once by formating first
|
; do the display all at once by formating first
|
||||||
|
|
Loading…
Reference in New Issue
Block a user