2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/guix-cuirass.git synced 2023-12-14 06:03:04 +01:00

base: Buffer input pipe of the 'evaluate' process.

* src/cuirass/base.scm (read/non-blocking): Add 'setvbuf' call.
This commit is contained in:
Ludovic Courtès 2018-01-25 09:48:18 +01:00
parent 9c96852c60
commit c9ae80a757

View file

@ -196,6 +196,7 @@ directory and the sha1 of the top level commit in this directory."
fibers."
;; XXX: Since 'read' is not suspendable as of Guile 2.2.3, we use
;; 'read-string' (which is suspendable) and then 'read'.
(setvbuf port 'block 4096) ;'read-string' uses 'read-char'
(match (read-string port)
((? eof-object? eof)
eof)