1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 22:31:12 +02:00

flush output when writing .go files

* module/system/base/compile.scm (call-with-output-file/atomic): Close
  the port we are writing to before renaming it, so that we flush output.
  Might fix some 0-length write errors that Jao was seeing.
This commit is contained in:
Andy Wingo 2009-02-13 21:48:56 +01:00
parent 34898db352
commit 5a0df7be5f

View file

@ -78,6 +78,7 @@
(with-throw-handler #t
(lambda ()
(proc tmp)
(close-port tmp)
(rename-file template filename))
(lambda args
(delete-file template)))))))