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

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



--OXfL5xGRrasGEqWY
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:
>=20
> > /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.

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

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

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

iD8DBQE6YLU2fO23eTjctSoRApWQAJ98qOwkiGsVvqtO/E7K8NrHYdODOgCfeotP
ICv5JlJ4cVUWgnKLVgNbT3Q=
=P4Yv
-----END PGP SIGNATURE-----

--OXfL5xGRrasGEqWY--

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