blob: 4ef81b57f3f8decdb59e622eb602a56361392170 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 1f8b79347187ab0933b595ded32b69217903037c Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 5 Dec 2013 10:58:23 +0100
Subject: [PATCH 3/3] 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;
}
--
1.8.5.1
|