JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Remove buffering to fileio instead of calling fflush
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 12 Sep 2012 19:51:55 +0000 (21:51 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 12 Sep 2012 19:51:55 +0000 (21:51 +0200)
commit720cb816dcff55f8b75bdc2a8ffa265f460f5d55
tree1e399c343f102eca23f2cbe97c2d33414b42bb93
parentb9d5fec4f277b688b3bb4741134abf152e801e90
Remove buffering to fileio instead of calling fflush

By default text files are line buffered, and this means that -f option will
not write the line until a \n is printed. This is not very useful for
debugging, so a call to fflush was added. This patch substitute this call
(which will be done by each character painted) by the full remove of the
buffering in the file.
---
 st.c |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
st.c