Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-10-22 14:18:24 +0400
committerEric Andersen <andersen@codepoet.org>2003-10-22 14:18:24 +0400
commit637d2266e1ea711f27ab0aec200a196b5eccbbca (patch)
treee8e464a2f0646bd05e80d8d415178ccb98504deb /coreutils/tee.c
parent5289969f08d64b6208c5db1049612ea7f9618080 (diff)
Disable any buffering to stdout
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);