stdio output flush (was re-directing 'rup' to a file)
Chris Torek
torek at elf.ee.lbl.gov
Tue Mar 5 23:20:57 AEST 1991
In article <1991Mar05.080251.15424 at convex.com> tchrist at 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 at ee.lbl.gov
More information about the Comp.unix.questions
mailing list