diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-10-22 10:18:24 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-10-22 10:18:24 +0000 |
commit | 637d2266e1ea711f27ab0aec200a196b5eccbbca (patch) | |
tree | e8e464a2f0646bd05e80d8d415178ccb98504deb | |
parent | 5289969f08d64b6208c5db1049612ea7f9618080 (diff) |
Disable any buffering to stdout
-rw-r--r-- | coreutils/tee.c | 1 |
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); |