diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-12-27 14:37:10 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-12-27 14:37:10 +0200 |
commit | 70fe7b121adf6df1518ae1b2a171fdbde83149f2 (patch) | |
tree | 4947c966cca04956621f6cd78d1abe4760a0acc9 /src/apk.c | |
parent | a662047e2c43604bc087ec4dda9a7358368d850b (diff) | |
download | apk-tools-70fe7b121adf6df1518ae1b2a171fdbde83149f2.tar.gz apk-tools-70fe7b121adf6df1518ae1b2a171fdbde83149f2.tar.bz2 apk-tools-70fe7b121adf6df1518ae1b2a171fdbde83149f2.tar.xz apk-tools-70fe7b121adf6df1518ae1b2a171fdbde83149f2.zip |
make stderr line buffered
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |