chiark
/
gitweb
/
~mdw
/
zone
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d9eca
)
zone.lisp: Close output files after writing.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 22 Dec 2014 20:32:58 +0000
(20:32 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 23 Dec 2014 11:38:33 +0000
(11:38 +0000)
Otherwise we end up with lots of open files for no good reason.
zone.lisp
patch
|
blob
|
blame
|
history
diff --git
a/zone.lisp
b/zone.lisp
index 7db70b1041616a8f62ac502c069b6068d74a5fe9..c800f1f4491d6850773703b2001ca44e43f4e501 100644
(file)
--- a/
zone.lisp
+++ b/
zone.lisp
@@
-1396,7
+1396,8
@@
(defun zone-save (zones &key (format :bind))
(error "Unknown zone `~A'." z))
(let ((stream (safely-open-output-stream safe
(zone-file-name z :zone))))
- (zone-write format zz stream))))))
+ (zone-write format zz stream)
+ (close stream))))))
;;;--------------------------------------------------------------------------
;;; Bind format output.