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:
parent
34898db352
commit
5a0df7be5f
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@
|
|||
(with-throw-handler #t
|
||||
(lambda ()
|
||||
(proc tmp)
|
||||
(close-port tmp)
|
||||
(rename-file template filename))
|
||||
(lambda args
|
||||
(delete-file template)))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue