From 637d2266e1ea711f27ab0aec200a196b5eccbbca Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 22 Oct 2003 10:18:24 +0000 Subject: [PATCH] Disable any buffering to stdout --- coreutils/tee.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreutils/tee.c b/coreutils/tee.c index 7e86f2e29..73c2f8e9d 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c @@ -89,6 +89,7 @@ int tee_main(int argc, char **argv) #endif #else + setvbuf(stdout, NULL, _IONBF, 0); while ((c = getchar()) != EOF) { for (p=files ; *p ; p++) { putc(c, *p); -- 2.25.1