projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Disable any buffering to stdout
[oweals/busybox.git]
/
coreutils
/
tee.c
diff --git
a/coreutils/tee.c
b/coreutils/tee.c
index 7e86f2e29cabfccc4431363ab581355122b7130b..73c2f8e9df406c6f0f790141ebdd835a5ddf32be 100644
(file)
--- 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);