fflush(stdout) after each line of output for pipes
This commit is contained in:
parent
f9ee82b535
commit
489637433a
|
@ -118,6 +118,10 @@ int main(int argc, char **argv) {
|
|||
err(1, "printf");
|
||||
}
|
||||
}
|
||||
|
||||
if (fflush(stdout) == -1) {
|
||||
err(1, "fflush");
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue