Flush only the open ports.
This commit is contained in:
parent
d9557de6ef
commit
2fa5e3f693
|
@ -542,7 +542,7 @@
|
|||
(define (flush-all-ports)
|
||||
(weak-table-walk
|
||||
(lambda (i fdport)
|
||||
(if (and fdport (output-port? fdport)) (flush-fdport fdport)))
|
||||
(if (and fdport (open-output-port? fdport)) (flush-fdport fdport)))
|
||||
fdports))
|
||||
|
||||
;;; Extend R4RS i/o ops to handle file descriptors.
|
||||
|
|
Loading…
Reference in New Issue