From 3df0b43146e20b8d86da5f890ca5cc163e929805 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 17 Jun 2019 16:58:31 +0100 Subject: Use line buffering for the input and output ports As these are used for logging, which is done on a line by line basis. Remove the now redundant calls to (force-output). --- scripts/guix-data-service.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/guix-data-service.in') diff --git a/scripts/guix-data-service.in b/scripts/guix-data-service.in index 1c57c57..a0d64cf 100644 --- a/scripts/guix-data-service.in +++ b/scripts/guix-data-service.in @@ -80,6 +80,9 @@ (error "extraneous argument" arg)) %default-options)) +(setvbuf (current-output-port) 'line) +(setvbuf (current-error-port) 'line) + (let ((opts (parse-options (cdr (program-arguments))))) (let ((repl-port (assoc-ref opts 'listen-repl))) (when repl-port -- cgit v1.2.3