From c57fe3622d44ebce49f3c0f3c24b3b9e33f0ac15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 24 Mar 2018 23:52:44 +0100 Subject: cuirass: Line-buffer stdout and stderr. * bin/cuirass.in (main): Add 'setvbuf' calls. --- bin/cuirass.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/cuirass.in b/bin/cuirass.in index 7e3c5cf..fa0d6af 100644 --- a/bin/cuirass.in +++ b/bin/cuirass.in @@ -77,6 +77,11 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@" ;;; (define* (main #:optional (args (command-line))) + + ;; Always have stdout/stderr line-buffered. + (setvbuf (current-output-port) _IOLBF) + (setvbuf (current-error-port) _IOLBF) + (let ((opts (getopt-long args %options))) (parameterize ((%program-name (car args)) -- cgit v1.2.3