Disable any buffering to stdout
This commit is contained in:
parent
5289969f08
commit
637d2266e1
@ -89,6 +89,7 @@ int tee_main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
while ((c = getchar()) != EOF) {
|
while ((c = getchar()) != EOF) {
|
||||||
for (p=files ; *p ; p++) {
|
for (p=files ; *p ; p++) {
|
||||||
putc(c, *p);
|
putc(c, *p);
|
||||||
|
Loading…
Reference in New Issue
Block a user