1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 22:40:34 +02:00

REPL server: Avoid deprecated '_IOFBF'.

* module/system/repl/server.scm (drain-input-and-close): Use 'block
instead of _IOFBF.
This commit is contained in:
Ludovic Courtès 2019-06-30 21:41:52 +02:00
parent ab2fd70ef1
commit 80213804ad

View file

@ -211,7 +211,7 @@ and then close it. Return the drained input as a string."
(lambda ()
;; Enable full buffering mode on the socket to allow
;; 'get-bytevector-some' to return non-trivial chunks.
(setvbuf socket _IOFBF))
(setvbuf socket 'block))
(lambda ()
(let loop ((chunks '()))
(let ((result (and (char-ready? socket)