aboutsummaryrefslogtreecommitdiff
path: root/coreutils/tee.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/tee.c')
-rw-r--r--coreutils/tee.c1
1 files changed, 1 insertions, 0 deletions
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);