FS#239 - stdout not flushed when it is going to a disk file
|
DetailsI 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