make stderr line buffered

cute-signatures
Timo Teräs 2021-12-27 14:37:10 +02:00
parent a662047e2c
commit 70fe7b121a
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}