From 1f8b79347187ab0933b595ded32b69217903037c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 5 Dec 2013 10:58:23 +0100 Subject: [PATCH] print: flush on apk_log Makes it more useful whith pipes. --- src/print.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/print.c b/src/print.c index aafe2ef..d8b0f3f 100644 --- a/src/print.c +++ b/src/print.c @@ -149,6 +149,7 @@ void apk_log(const char *prefix, const char *format, ...) vfprintf(stdout, format, va); va_end(va); fprintf(stdout, "\n"); + fflush(stdout); apk_progress_force = 1; }