aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix/inferior.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/inferior.scm b/guix/inferior.scm
index 629c2c4313..05c8d65deb 100644
--- a/guix/inferior.scm
+++ b/guix/inferior.scm
@@ -87,7 +87,10 @@ equivalent. Return #f if the inferior could not be launched."
(define pipe
(inferior-pipe directory command))
- (setvbuf pipe _IOLBF)
+ (cond-expand
+ ((and guile-2 (not guile-2.2)) #t)
+ (else (setvbuf pipe 'line)))
+
(match (read pipe)
(('repl-version 0 rest ...)
(let ((result (inferior 'pipe pipe (cons 0 rest))))