[comp.unix.questions] stdio output flush

torek@elf.ee.lbl.gov (Chris Torek) (03/05/91)

In article <1991Mar05.080251.15424@convex.com> tchrist@convex.COM
(Tom Christiansen) writes:
>...I think that this is just a hack
>around a problem caused by lack of design forethought in stdio:
>you shouldn't need a whole pty just to get line buffering!

In my opinion, the design flaw is that line buffering exists.  Indeed,
any kind of buffering other than `full'---unbuffered output should just
be a last-resort-buffer-size-equals-one trick, much the way I
implemented it myself---is just a complication that leads to this sort
of bad behaviour.

But there is nothing I can do about that. . . .
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab EE div (+1 415 486 5427)
Berkeley, CA		Domain:	torek@ee.lbl.gov