summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-06-30 21:41:52 +0200
committerLudovic Courtès <ludo@gnu.org>2019-06-30 21:42:31 +0200
commit80213804ad219e7bbd273956c0913c294332f065 (patch)
tree56860a07a0329a8508888e5cb7bea50edb3b098c /module
parentab2fd70ef1e36c6532128b73082809ef3c056556 (diff)
REPL server: Avoid deprecated '_IOFBF'.
* module/system/repl/server.scm (drain-input-and-close): Use 'block instead of _IOFBF.
Diffstat (limited to 'module')
-rw-r--r--module/system/repl/server.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/system/repl/server.scm b/module/system/repl/server.scm
index d733939c0..9bc11af5f 100644
--- a/module/system/repl/server.scm
+++ b/module/system/repl/server.scm
@@ -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)