From cbfaf9cba096a19149148023c16bec7fe2a8e804 Mon Sep 17 00:00:00 2001 From: job Date: Wed, 3 Aug 2022 16:54:30 +0000 Subject: [PATCH] Since ts(1) is line-based, always using line buffering makes sense millert@ yep deraadt@ --- usr.bin/ts/ts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/ts/ts.c b/usr.bin/ts/ts.c index ccfe21f8b17..284d8ccee0b 100644 --- a/usr.bin/ts/ts.c +++ b/usr.bin/ts/ts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ts.c,v 1.8 2022/07/07 10:40:25 claudio Exp $ */ +/* $OpenBSD: ts.c,v 1.9 2022/08/03 16:54:30 job Exp $ */ /* * Copyright (c) 2022 Job Snijders * Copyright (c) 2022 Claudio Jeker @@ -72,6 +72,8 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; + setvbuf(stdout, NULL, _IOLBF, 0); + if ((iflag && sflag) || argc > 1) usage(); -- 2.20.1