cuirass: Line-buffer stdout and stderr.

* bin/cuirass.in (main): Add 'setvbuf' calls.
This commit is contained in:
Ludovic Courtès 2018-03-24 23:52:44 +01:00
parent 99d88929a6
commit c57fe3622d
1 changed files with 5 additions and 0 deletions

View File

@ -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))