FS#239 - stdout not flushed when it is going to a disk file
Opened by Omari Norman (massysett) - 2010-07-24 07:38:57 PM
Last edited by Ben Boeckel (mathstuf) - 2014-03-06 07:17:18 AM
I wanted to send uzbl's stdout to a disk file and monitor the output by using tail -f on the file. However, uzbl's output is not showing up in the disk file unless I quit uzbl. The output shows up right away if stdout is going straight to a terminal. Probably this is a setbuf thing. setbuf(3) says that streams are block-buffered if going to a file, line-buffered if going to a terminal. It would be nice if it were always line-buffered so that situations like this would work OK. It shouldn't affect performance as uzbl doesn't dump a ton of stuff to stdout.
2014-03-06 07:17:18 AM
Reason for closing: Implemented
Additional comments about closing: https://github.com/uzbl/uzbl/commit/b5a6 4af00318f78f9caf06dd2017d43f92449802