make sure to flush-output before fsync
This commit is contained in:
parent
69ae22f678
commit
7183bcad33
|
@ -115,6 +115,7 @@
|
|||
(fsync-call fd))))
|
||||
|
||||
(define (port-fsync port)
|
||||
(flush-output port)
|
||||
(match (system-type 'os)
|
||||
['unix (port-fsync/unix port)]
|
||||
[x (error "don't know how to fsync on" x)]))
|
||||
|
|
Loading…
Reference in New Issue