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:
parent
ab2fd70ef1
commit
80213804ad
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue