FS#239 - stdout not flushed when it is going to a disk file

Attached to Project: Uzbl
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
Task Type Bug Report
Category uzbl-core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


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.
This task depends upon

Closed by  Ben Boeckel (mathstuf)
2014-03-06 07:17:18 AM
Reason for closing:  Implemented
Additional comments about closing: 4af00318f78f9caf06dd2017d43f92449802 7d7dfb1ef0bf53f800c5d11307154fba4afe