summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index 81e01c8..39b878c 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -397,6 +397,8 @@ static void on_sigwinch(int s)
static void setup_terminal(void)
{
+ static char buf[200];
+ setvbuf(stderr, buf, _IOLBF, sizeof buf);
signal(SIGWINCH, on_sigwinch);
signal(SIGPIPE, SIG_IGN);
}