projects
/
platform
/
upstream
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab2fd70
)
REPL server: Avoid deprecated '_IOFBF'.
author
Ludovic Courtès
<ludo@gnu.org>
Sun, 30 Jun 2019 19:41:52 +0000
(21:41 +0200)
committer
Ludovic Courtès
<ludo@gnu.org>
Sun, 30 Jun 2019 19:42:31 +0000
(21:42 +0200)
* module/system/repl/server.scm (drain-input-and-close): Use 'block
instead of _IOFBF.
module/system/repl/server.scm
patch
|
blob
|
history
diff --git
a/module/system/repl/server.scm
b/module/system/repl/server.scm
index d733939c022fa5f94b4ac14ff9f68a2edc86c19c..9bc11af5f015a16c998260893d4ff64d2e6f2a05 100644
(file)
--- 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)