[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Can fetchnews un-buffer stdout?

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 13, 2001 at 08:32:36PM +0100, Matthias Andree wrote:
> > /usr/local/sbin/fetchnews -vvv \
> > 1>>/var/spool/news/log/fetchnews.log 2>&1
> > redirects stdout to a non-terminal file, which disables line
> > buffering.
> Why should a shell redirection switch from line to full buffering?

Because glibc checks if stdout is connected to a tty and uses full
buffering if not.

Quoting from the glibc texinfo documentation:

|    Newly opened streams are normally fully buffered, with one
| exception: a stream connected to an interactive device such as a
| terminal is initially line buffered.

Houston, Tranquillity Base here.  The Eagle has landed.
	-- Neil Armstrong

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org



leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list