From: job Date: Wed, 3 Aug 2022 16:54:30 +0000 (+0000) Subject: Since ts(1) is line-based, always using line buffering X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cbfaf9cba096a19149148023c16bec7fe2a8e804;p=openbsd Since ts(1) is line-based, always using line buffering makes sense millert@ yep deraadt@ --- 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();