1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-30 06:50:31 +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 () (lambda ()
;; Enable full buffering mode on the socket to allow ;; Enable full buffering mode on the socket to allow
;; 'get-bytevector-some' to return non-trivial chunks. ;; 'get-bytevector-some' to return non-trivial chunks.
(setvbuf socket _IOFBF)) (setvbuf socket 'block))
(lambda () (lambda ()
(let loop ((chunks '())) (let loop ((chunks '()))
(let ((result (and (char-ready? socket) (let ((result (and (char-ready? socket)