Disable any buffering to stdout
authorEric Andersen <andersen@codepoet.org>
Wed, 22 Oct 2003 10:18:24 +0000 (10:18 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 22 Oct 2003 10:18:24 +0000 (10:18 -0000)
coreutils/tee.c

index 7e86f2e29cabfccc4431363ab581355122b7130b..73c2f8e9df406c6f0f790141ebdd835a5ddf32be 100644 (file)
@@ -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);