From 94aa40778c00c56fbe6bff37b8a8176079c4aa13 Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Sun, 3 Feb 2019 08:18:55 -0500 Subject: [PATCH] Make log messages line buffered --- endlessh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/endlessh.c b/endlessh.c index 745b39d..189c51f 100644 --- a/endlessh.c +++ b/endlessh.c @@ -253,7 +253,8 @@ main(int argc, char **argv) port = tmp; break; case 'v': - loglevel++; + if (!loglevel++) + setvbuf(stdout, 0, _IOLBF, 0); break; default: usage(stderr);