aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-10-22 10:18:24 +0000
committerEric Andersen <andersen@codepoet.org>2003-10-22 10:18:24 +0000
commit637d2266e1ea711f27ab0aec200a196b5eccbbca (patch)
treee8e464a2f0646bd05e80d8d415178ccb98504deb /coreutils
parent5289969f08d64b6208c5db1049612ea7f9618080 (diff)
downloadbusybox-637d2266e1ea711f27ab0aec200a196b5eccbbca.tar.gz
Disable any buffering to stdout
Diffstat (limited to 'coreutils')
-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);