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
|
||||
|
||||
#else
|
||||
setvbuf(stdout, NULL, _IONBF, 0);
|
||||
while ((c = getchar()) != EOF) {
|
||||
for (p=files ; *p ; p++) {
|
||||
putc(c, *p);
|
||||
|
Loading…
Reference in New Issue
Block a user