Disable any buffering to stdout

This commit is contained in:
Eric Andersen 2003-10-22 10:18:24 +00:00
parent 5289969f08
commit 637d2266e1

View 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);